unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* convert environment to module `name'
@ 2017-03-04 18:57 Matt Wette
  2017-03-05  8:17 ` Thien-Thi Nguyen
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Wette @ 2017-03-04 18:57 UTC (permalink / raw)
  To: guile-user

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-05 14:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-04 18:57 convert environment to module `name' Matt Wette
2017-03-05  8:17 ` Thien-Thi Nguyen
2017-03-05 14:09   ` Matt Wette
2017-03-05 14:30     ` Matt Wette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).