Re: convert environment to module `name'

2017-03-05 Thread Matt Wette
> On Mar 5, 2017, at 6:09 AM, Matt Wette wrote: > >> >> On Mar 5, 2017, at 12:17 AM, Thien-Thi Nguyen wrote: >> >> >> () Matt Wette >> () Sat, 4 Mar 2017 10:57:19 -0800 >> >> I don’t know how to get the list-symbol path “mod from env” >> from the env argument. Any ideas? >> >> I think

Re: convert environment to module `name'

2017-03-05 Thread Matt Wette
> On Mar 5, 2017, at 12:17 AM, Thien-Thi Nguyen wrote: > > > () Matt Wette > () Sat, 4 Mar 2017 10:57:19 -0800 > > I don’t know how to get the list-symbol path “mod from env” > from the env argument. Any ideas? > > I think ‘module-name’ is what you need: > > scheme@(guile-user)> (curre

Re: convert environment to module `name'

2017-03-05 Thread Thien-Thi Nguyen
() Matt Wette () Sat, 4 Mar 2017 10:57:19 -0800 I don’t know how to get the list-symbol path “mod from env” from the env argument. Any ideas? I think ‘module-name’ is what you need: scheme@(guile-user)> (current-module) $1 = # scheme@(guile-user)> (module-name (current-module)) $2 =

convert environment to module `name'

2017-03-04 Thread Matt Wette
I am working on “Compiling to the Virtual Machine”. Guile passes an `env’ object to the parser/compiler which is apparently the module object for the desired execution environment. To reference top-level variables in (external) tree-il I am using '(toplevel foo) but I guess I should b