[racket] obtaining name of module-level binding

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Aug 7 15:22:48 EDT 2012

No, but you could define your own language that had its own define
that cooperated with some-useful-... to do that.

You would probably want to do this with a macro, tho, so that you get
the lexical property. I guess.

Robby

On Tue, Aug 7, 2012 at 1:15 PM, Galler <lzgaller at optonline.net> wrote:
> Is there a function or syntax to obtain the module-level binding of a
> function?
>
> For example:
>
> (define (my-function)
>   (display
> (some-useful-function-which-captures-name-of-module-level-binding)))
>
> ;-> 'my-function
>
>
> Thanks very much.
>
> R./
> Zack
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

Posted on the users mailing list.