On 25 Nov 2003, Doug McNaught wrote:
> =?X-UNKNOWN?Q?Andr=E1s_Simon?= <asimon@...> writes:
>
> > On 25 Nov 2003, Doug McNaught wrote:
> >
> > > (defmethod initialize-instance :after ((f foo) &key &allow-other-keys)
> > ~~~~~~~~~~~~~~~~~~~~~~
> > Are you sure this is what you want?
>
> Umm... Well... It complains if I leave it off. ;) I admit I
> actually don't quite understand how it interacts with everything
> else. But feeding the same code to SBCL works, so I figured it was a
> bug...
I'm not very good at reading BNF, but 3.4.1 (and the expectation that
one should be able to suppress keyword arg checking without having to
use keyword args) gives me the impression that you're right, it should
work.
>
> I have been trying to grok CLOS from the spec but it is heavy going. :)
I think it's not necessarily a CLOS issue; the bug (if it is one) can
be reproduced with
(defun test (x &key &allow-other-keys) (format t "Did something!"))
Andras
|