[plt-scheme] Am I being required or...?

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Mar 29 09:02:00 EDT 2010

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.


Posted on the users mailing list.