altos/scheme: (define (foo . bar)) has a pair, not list as card
authorKeith Packard <keithp@keithp.com>
Tue, 19 Dec 2017 19:37:33 +0000 (11:37 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 19 Dec 2017 19:37:33 +0000 (11:37 -0800)
commit53b99e0419cb44c7983e41026bf0430deae58940
tree38ca984da391ccfc4c34d7713a049a9ad172bcff
parentfbe5dc9f215e7014aa8f9d325c1fba939816be03
altos/scheme: (define (foo . bar)) has a pair, not list as card

When defining a lambda with varargs, the args are not a list as the
final element is not a pair or nil. Use pair? instead of list? to
detect this form correctly.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/scheme/ao_scheme_const.scheme