[plt-scheme] Determining the module about to be called

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri May 11 20:15:15 EDT 2007

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


Posted on the users mailing list.