Re: More default methode issues

"Eric M. Ludlam" <[email protected]> Fri, 11 Jun 2010 20:54:40 -0400
Newsgroups gmane.emacs.eieio
Message-ID <[email protected]>
On 06/11/2010 04:58 AM, Frank wrote:
> Eric M. Ludlam schrieb:

>> Hi Frank,
>>
>> To make sure I didn't miss anything, does this mean your questions are
>> all answered?
>>
>> Thanks
>> Eric
>>
>>
> Nope not really.
>
> If I evaluate (func 666) then the result is "func foo :after 666".
> Obviously this call is dispatched to a method which is defined for
> objects of class foo but 666 is not such an object.  This looks wrong to
> me.  Please correct me if this is not the case (as I'm a beginner with
> LISP/CLOS).

Thanks for persisting.  I was able to run your example today and see 
what you were talking about.  I checked in a change for EIEIO to make it 
first robust to problems of calling (func 666) with a non-class, and 
then I also got it to find the right method implementation.

This was always meant to work, but there was no test for that case, and 
EIEIO regressed at some point.

Eric

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo