[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
convert environment to module `name'
From: |
Matt Wette |
Subject: |
convert environment to module `name' |
Date: |
Sat, 4 Mar 2017 10:57:19 -0800 |
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
- convert environment to module `name',
Matt Wette <=