better procedure-arguments for interpreted procs with opt, rest, kwargs
authorAndy Wingo <wingo@pobox.com>
Fri, 6 Jul 2012 10:19:12 +0000 (12:19 +0200)
committerAndy Wingo <wingo@pobox.com>
Fri, 6 Jul 2012 10:19:12 +0000 (12:19 +0200)
commitfc835b1b14a38f61150557ab531de51f98239739
tree39068b5e96ea2e34f489e5ca3738a8b9a57414dd
parent5558cdaa302aba6ba493612fbea1fdac09db7d96
better procedure-arguments for interpreted procs with opt, rest, kwargs

* module/ice-9/session.scm (procedure-arguments): Arrange to interpret
  numbers in the "req" and "opt" positions of an 'arglist as N arguments
  with unknown name.

* module/ice-9/eval.scm (primitive-eval): Set 'arglist on "complex"
  procedures.  Fixes http://bugs.gnu.org/10922.

* test-suite/tests/session.test ("procedure-arguments"): Add a test.
module/ice-9/eval.scm
module/ice-9/session.scm
test-suite/tests/session.test