[plt-scheme] Am I being required or...?
This is an unusual thing to do IME. Why don't you explain why you want
to make the distinction and perhaps someone will be able to suggest an
alternative that avoids this issue.
N.
On Sun, Mar 28, 2010 at 9:02 AM, Synx <plt at synx.us.to> wrote:
>
> How would I test if the current module being run has been required from
> another module, or was directly executed by mzscheme, mred or drscheme?
> For instance (require "some-module.ss") and ($ mzscheme some-module.ss)
> would both load the module, so if I had an example program running with
> ($ mzscheme some-module.ss) it would also run for every other program
> that required the darn thing.