[Openmcl-devel] Naming anonymous functions

Anton Vodonosov avodonosov at yandex.ru
Sat Mar 1 13:06:19 PST 2014

Consider also alexandria:named-lambda, which is implemented using cl:labels

02.03.2014, 00:32, "Ron Garret" <ron at flownet.com>:
> Thanks!
> On Mar 1, 2014, at 12:11 PM, Gail Zacharias <gz at clozure.com> wrote:
>>  (ccl::lfun-name function &optional new-name)
>>  On Mar 1, 2014, at 2:57 PM, Ron Garret <ron at flownet.com> wrote:
>>>  Is there any way to give a name to an anonymous function after it has been created?  Looking at the objects produced by LAMBDA and CCL::NLAMBDA it appears the only difference between them is that anonymous functions have name of NIL, but as these are not standard-objects I can’t figure out how to change this value.  (I tried reverse-engineering the code that creates them in nx1.lisp but I got lost in a twisty little maze of S-expressions.)
>>>  (FYI, the reason I want to do this is to facilitate debugging an application that has a lot of anonymous functions floating around.)
>>>  Thanks,
>>>  rg
>>>  _______________________________________________
>>>  Openmcl-devel mailing list
>>>  Openmcl-devel at clozure.com
>>>  http://clozure.com/mailman/listinfo/openmcl-devel
> ,
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel

More information about the Openmcl-devel mailing list