[Ecls-list] Two bugs in ECL's CLOS implementation
Pascal Costanza
pc at p-cos.net
Fri Nov 27 14:05:45 UTC 2009
On 26 Nov 2009, at 12:57, Juan Jose Garcia-Ripoll wrote:
> I think both errors are unrelated.
Yes, of course.
> One of them is probably due to a
> fix submitted recently, which might not be working properly.
>
> The other one might be due to the form of the lambda function. I am
> not sure that I designed set-funcallable-instance-function to take a
> function with the same signature as the generic function, but rather a
> function that works as a dispatch (something like taking the
> funcallable instance and a list of arguments). I have to look it up.
No, I think the shape of the funcallable instance function is fine - it seems to take arguments just like the generic function just fine.
I think it's rather this (but I'm still testing this):
Index: src/c/gfun.d
===================================================================
RCS file: /cvsroot/ecls/ecl/src/c/gfun.d,v
retrieving revision 1.49
diff -r1.49 gfun.d
62a63
> aux->instance.sig = x->instance.sig;
What happens is that after a set-funcallable-instance-function the slot-value functions don't work on the generic function anymore...
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