[Ecls-list] ECL + ContextL?

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sun Nov 1 13:36:28 UTC 2009


On Sun, Nov 1, 2009 at 12:12 PM, Alexander Gavrilov
<angavrilov at gmail.com> wrote:
> Currently ContextL fails to build on ECL due to the lack
> of funcallable-standard-class:
> I wonder how difficult might it be to fix it?

Not too much. CLOS objects are already accepted by funcall, but only
when they are marked as funcallable.

(clos::set-funcallable-instance-function instance dispatch)

instance = a standard object
dispatch = T, NIL or a function object

When DISPATCH = NIL, the instance becomes not funcallable. When it is
T, then it is a standard ECL funcallable object using its own
dispatch. When it is a lisp function then it should have a signature
(lambda (funcallable-instance arg1 arg2 ...) ..) or similar one, and
you will be responsible for writing it.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list