This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CL implementation questions


AS doesn't seem to be working in the common lisp language, and I'm
struggling to see why.

In Scheme:
#|kawa:1|# (as <pair> '(1 2 3)):getCar
#<procedure gnu.kawa.functions.NamedPart>
#|kawa:2|# ((as <pair> '(1 2 3)):getCar)
1

as expected.

In CL:

#|kawa:1|# ((as <pair> '(1 2 3)):getCar)
Invalid parameter, was: gnu.lists.PairWithPosition cannot be cast to
gnu.mapping.Procedure
java.lang.ClassCastException: gnu.lists.PairWithPosition cannot be
cast to gnu.mapping.Procedure
...
#|kawa:2|# (as <pair> '(1 2 3)):getCar
(1 2 3) :getCar

I'm struggling to see where the difference is happening. I don't know
how to trace the execution since the difference is happening in
ModuleExp thread which I don't know how to get a handle on for the
debugger.

Any ideas?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]