kawa-commonlisp-dev
[Top][All Lists]
Advanced

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

Re: [Kawa-commonlisp-dev] [GSoC] Parameter protocols in CL


From: Jamison Hope
Subject: Re: [Kawa-commonlisp-dev] [GSoC] Parameter protocols in CL
Date: Wed, 25 Jul 2012 18:32:07 -0400

(Moved to the shiny new kawa-commonlisp-dev list.)

On Jul 25, 2012, at 4:22 PM, Charles Turner wrote:

On 25 July 2012 18:36, Charles Turner <address@hidden> wrote:
Afraid I still haven't made much progress on the keyword parameter
bug...

I think I know what this is now. To recap

(defun test (&key ((secret password) nil)) (list password))

(test 'secret 12)
(nil)

is the problem. The mistake is that searchForKeywords is
(unsurprisingly) searching for a *keyword* not a symbol, which is,
IIUC, what's required here. So since :secret != CL-USER::secret, it
fails. It seems like LambdaExp#keywords needs to be generalised to
Symbols, but that seems a tad drastic given that this is such an
uncommon programming practice and I imagine it will break all kinds of
things later on... As this would be quite a large change, are there
any comments about it before I proceed?

So this only applies when you're doing the key-name != var-name thing,
right? Do we need that to be working right now, or can we mark it as
a known bug and move on?


-Jamie


--
Jamison Hope
The PTR Group
www.theptrgroup.com






reply via email to

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