[plt-scheme] programmatic access to current namespace

From: Jose A. Ortega Ruiz (jao at gnu.org)
Date: Fri May 1 07:12:00 EDT 2009

Hi,

After enter!ing a module in mzscheme, calling (current-namespace) prints
a representation of the current namespace that contains the module file
name: 

> (enter! "/tmp/foo.ss")
> (current-namespace)
#<namespace:"/tmp/foo.ss":0>
>

Is there a way of getting the file name (or module path) a namespace
refers to given the value of the latter? (i'm thinking of something
like, say, (module-path (current-namespace)))

Thanks!
jao




Posted on the users mailing list.