[Ecls-list] MOP bugs
    Pascal Costanza 
    pc at p-cos.net
       
    Thu Mar  9 06:44:08 UTC 2006
    
    
  
Hi everyone,
First the good news: The MOP Feature Tests suite now executes in ECL.  
You can find the version that does so in the darcs repository of the  
Closer project.
There are two important bugs that block some deeper tests, so the  
test suites reports incompatibilities that may not be actual  
incompatibilities.
One is that add-method doesn't work as expected with generated method  
instances. Here is an example:
 > (defgeneric test (x))
#<STANDARD-GENERIC-FUNCTION TEST>
 > (add-method #'test
     (make-instance 'standard-method
                    :qualifiers '()
                    :lambda-list '(x)
                    :specializers (list (find-class 't))
                    :function (lambda (x) (+ x x))))
The slot SI::DATUM in the object  is unbound.
The other is that the following functions are plain functions, and  
not generic ones as required by AMOP: compute-applicable-methods,  
compute-effective-method, find-method, remove-method and generic- 
function-method-class.
Next on my todo list is a first attempt to implement Closer to MOP  
for ECL.
Cheers,
Pascal
-- 
Pascal Costanza, mailto:pc at p-cos.net, http://p-cos.net
Vrije Universiteit Brussel, Programming Technology Lab
Pleinlaan 2, B-1050 Brussel, Belgium
    
    
More information about the ecl-devel
mailing list