bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (ice-9 optargs) lambda* and define* #:rest broken


From: Marius Vollmer
Subject: Re: (ice-9 optargs) lambda* and define* #:rest broken
Date: Tue, 10 Aug 2004 00:13:17 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Clinton Ebadi <address@hidden> writes:

> (define foo (lambda* (#:key (atts '()) #:rest rest) (format #t "Atts:
> ~S; Rest: ~S~%" atts rest)))
>
> (foo #:atts '(1 2 3) 'foo 'bar)
> ] Atts: (1 2 3); Rest: (#:atts (1 2 3) foo bar)

This is the behavior that Common Lisp specifies, so we will have to
argue whether it really is a bug of Guile to behave this way.

In fact, the above is probably a bug, but a different from yours: the
'foo 'bar arguments should raise an error since they are not a
keyword-value pair.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]