[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: environments

From: Ian Zimmerman
Subject: Re: environments
Date: 24 Mar 2004 09:39:59 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Ian> ; how to implement make-env?  with resolve-module, current-module, ..?
Ian> (define e (make-env))

Paul> (define e (make-module 31 (list (resolve-module '(guile)))))

Paul> The 31 specifies the initial size of the hash table used for symbols.
Paul> After that is a list of modules (just one, in this case) - if you try
Paul> to look up a symbol in e and it isn't there, guile will fall back to
Paul> those other modules.

Perfect ;-)  Thanks very much!

Nothing can be explained to a stone.
Or to a stoned person, either.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]