keyword arg errors throw to 'keyword-argument-error
authorAndy Wingo <wingo@pobox.com>
Wed, 23 Dec 2009 21:59:12 +0000 (22:59 +0100)
committerAndy Wingo <wingo@pobox.com>
Wed, 23 Dec 2009 21:59:12 +0000 (22:59 +0100)
commitf6a8e7919755ce15cd75ad01326e02151fa99445
tree66c4b0ce2f2a81133853375a21785f728f32b0fd
parent1ad7fef5249f409317c20d5242bc3c4c2b8d9d18
keyword arg errors throw to 'keyword-argument-error

* libguile/vm-engine.c (VM_NAME): Keyword arg errors are now thrown to
  'keyword-argument-error.

* libguile/vm.c: Define sym_keyword_argument_error, and statically
  allocate some other symbols.

* module/ice-9/optargs.scm (parse-lambda-case): Throw to
  'keyword-argument-error in kwarg error cases.

* module/ice-9/psyntax.scm (build-lambda-case): Remove a couple
  workarounds for the old memoizer. Throw to 'wrong-number-of-args if
  the lambda-case fails to parse.

* module/ice-9/psyntax-pp.scm: Regenerated.

* test-suite/tests/optargs.test: Update expected exceptions.
libguile/vm-engine.c
libguile/vm.c
module/ice-9/optargs.scm
module/ice-9/psyntax-pp.scm
module/ice-9/psyntax.scm
test-suite/tests/optargs.test