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 be using
'(@ (mod from env) foo)
I don’t know how to get the list-symbol path “mod from env” from the env
argument. Any ideas?
The following generates an error:
`(@ ,env foo)
where env in write format looks like
<directory (guile-user) 10c8fbbd0>
Matt