[Ecls-list] Two bugs in ECL's CLOS implementation

Pascal Costanza pc at p-cos.net
Thu Nov 26 11:01:14 UTC 2009


On 25 Nov 2009, at 22:28, Pascal Costanza wrote:

> Showstopper:
> 
>> (defgeneric test (a b c))
> 
> #<STANDARD-GENERIC-FUNCTION TEST>
>> (defmethod test (a b c) (+ a b c))
> 
> #<STANDARD-METHOD TEST (#<The BUILT-IN-CLASS T> #<The BUILT-IN-CLASS T>
>                      #<The BUILT-IN-CLASS T>)>
>> (test 3 4 5)
> 
> 12
>> (clos:set-funcallable-instance-function #'test (lambda (a b c) (* a b c)))
> 
> #<STANDARD-GENERIC-FUNCTION TEST>
>> (test 3 4 5)
> 
> 60
>> (defmethod test (a b c) (+ a b c))
> 
> Detected access to an invalid or protected memory address.
> 
> Available restarts:
> [...]

How do I get better error messages here? I would like to know what operation caused this error / what memory or slot was actually accessed...

Any hints?


Pascal

-- 
Pascal Costanza, mailto:pc at p-cos.net, http://p-cos.net
Vrije Universiteit Brussel
Software Languages Lab
Pleinlaan 2, B-1050 Brussel, Belgium










More information about the ecl-devel mailing list