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

Re: MCL CLOS method combination bug



At  1:10 AM 1/12/94 +0000, Daniel Mahler wrote:
>This transcript seems to show that MCL CLOS has a problem combining EQL specialised primary methods
>with nonprimary methods specialised on class. Is this bug known? Is there a patch for it?

It is a known bug. I sent the patch to Daniel. If you want it, ask for
"eql-method-comb-patch".

-Bill

>
>? (defgeneric f (x))
>#<STANDARD-GENERIC-FUNCTION F #xC188F6>
>? (defmethod f ((x (eql 1)))
>    'hello)
>#<STANDARD-METHOD F ((EQL 1))>
>? (f 1)
>HELLO
>? (defmethod f :after (x)
>    (print x))
>#<STANDARD-METHOD F :AFTER (T)>
>? (f 1)
>> Error: No applicable primary methods for #<STANDARD-GENERIC-FUNCTION F #xC188F6>
>>        Applicable methods: (#<STANDARD-METHOD F :AFTER (T)>)
>> While executing: CCL::%METHOD-COMBINATION-ERROR
>> Type Command-. to abort.
>See the RestartsI menu item for further choices.