[plt-scheme] Determining the module about to be called
At Fri, 11 May 2007 17:28:01 -0600, "Jay McCarthy" wrote:
> Suppose I have syntax-object (stx) in some module M1, that matches
> #`(#%app o e ...), is there any way to check if #'o refers to an
> identifier that was imported from another module?
You can use `identifier-binding' to found out which module supplies the
identifier's binding. If it's from the enclosing module, then the
binding's module will be `(module-path-index-join #f #f)'.
Matthew