[racket] obtaining name of module-level binding

From: Galler (lzgaller at optonline.net)
Date: Tue Aug 7 15:36:20 EDT 2012

Robby,

Thanks for the prompt answer.

  I suspected that would be the case.

Is 'Semantics Engineering with PLT Redex' where I should get started on 
language-engineering?




On Tue, Aug 7, 2012 at 3:22 PM, Robby Findler wrote:

> 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.