[Openmcl-devel] function self reference

Taoufik Dachraoui dachraoui.taoufik at gmail.com
Wed Apr 22 04:12:21 PDT 2015


Hi

is it possible to reference a function inside its body

I would like to have something equivalent to the following without using
eval:

*(funcall (funcall (funcall #1=(lambda (n) (if (= n 0) (eval '#1#)
#2=(lambda (m) (if (= m 0) (eval '#2#) (+ n m))))) 0) 3) 5)*


Kind regards

Taoufik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20150422/59242c1d/attachment.htm>


More information about the Openmcl-devel mailing list