[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Weird stuff with define*
From: |
Jorgen 'forcer' Schaefer |
Subject: |
Weird stuff with define* |
Date: |
Tue, 19 Sep 2000 01:35:39 +0200 |
Hi there!
I just noticed a few funny things with define* from (ice-9
optargs):
guile> (define* (foo #:optional bar #:key baz)
(cons bar baz))
guile> (foo 'bar #:baz 'baz)
(bar . baz)
guile> (foo #:baz 'baz 'bar)
(#:baz . #<undefined>)
guile> (define* (foo #:key bar #:rest baz)
(list bar baz))
guile> (foo #:bar 'bar 'the 'rest)
(bar (#:bar bar the rest))
Is this wanted behavior, or a bug?
-- forcer
--
((email . "address@hidden") (www . "http://forcix.cx/")
(irc . "address@hidden (IRCnet)") (gpg . "1024D/028AF63C"))
- Weird stuff with define*,
Jorgen 'forcer' Schaefer <=