with a rest arg, allow for keywords anywhere
authorAndy Wingo <wingo@pobox.com>
Mon, 16 Nov 2009 21:32:54 +0000 (22:32 +0100)
committerAndy Wingo <wingo@pobox.com>
Mon, 16 Nov 2009 21:32:54 +0000 (22:32 +0100)
commitff74e44ecba55f50b2c2c84bad2f13bed9489455
tree005790d41437107aadd115332cb3038392378777
parent222831b443a14dd58ef646e8b313a38c38237f69
with a rest arg, allow for keywords anywhere

* libguile/vm-i-system.c (br-if-nargs-gt): Fix variable declaration
  placement.
  (bind-kwargs): Patch mostly by Ludovic: it seems that in the mode in
  which we have rest args, the keywords can appear anywhere. Bummer.
  Change to allow for this.

* module/ice-9/optargs.scm (parse-lambda-case): Same, add a
  permissive-keys clause that handles the case in which there's a rest
  argument.
libguile/vm-i-system.c
module/ice-9/optargs.scm