This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

Identical Keyword Parameter

2 posts · 2351 views

Hello,

I have a quick question.

Consider this:
((lambda (&key k) k) :k 1 :k 2)
=> 1 ; on my system

Is the outcome of this form well defined by the standard?

Thanks,
Frank

Re: Identical Keyword Parameter

http://www.lispworks.com/documentation/ ... 03_dad.htm:
For each keyword parameter specifier, if there is an argument pair whose name matches that specifier's name (that is, the names are eq), then the parameter variable for that specifier is bound to the second item (the value) of that argument pair. If more than one such argument pair matches, the leftmost argument pair is used.