[Openmcl-devel] Naming anonymous functions

Gail Zacharias gz at clozure.com
Sat Mar 1 12:11:45 PST 2014


(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




More information about the Openmcl-devel mailing list