[Ecls-list] ContextL functions with &key args don't work properly in ECL.
Alexander Gavrilov
angavrilov at gmail.com
Thu Mar 18 10:35:37 UTC 2010
On Sat, Mar 13, 2010 at 4:14 PM, Pascal Costanza <pc at p-cos.net> wrote:
> (define-layered-function foo (x))
>
> (define-layered-method foo (x) (/ x 0))
>
> (foo 5)
>
> What I get is a backtrace where there is a call to foo, and then a call to an anonymous lambda, which I think is the correct behavior. As I tried to argue in another post, method functions are by definition anonymous, and I strongly think they should remain anonymous. What you see in the backtrace, though, is that there is an invocation to FOO, which should be the information that you need, no?
Try deep recursion involving multiple layered functions in compiled
code. The wrappers apparently get inlined, so the backtrace is full of
meaningless gensyms. The only way to understand what's going on is by
guessing based on the visible local variables.
Alexander
More information about the ecl-devel
mailing list