|
From: | Sjoerd van Leent Privé |
Subject: | Environments |
Date: | Mon, 03 Dec 2012 16:24:24 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 |
Hi Everyone, What I like to do is to let the user give a "driver" library and pass that "driver" library around which implements a certain procedure. Using the eval procedure together with a small instruction and a ad-hoc generated environment would let the software be pretty free of things flying around with ill side-effects. Anyone an idea how I could do this in a portable way? I have been trying to do this using the construct (environment, import-spec), however, this doesn't appear to include the default things which the "guile" library provides (such as quote, unquote, quasiquote and the likes). When using the (scheme-report-enviroment 5), it appears not to be possible to pass along additional import-spec elements. I know it is possible to pass "guile" along, however, this is not very elegant in portability. Also, I would like the environment to be destroyed afterwards (as I don't want the environment to leak unwanted side-effects). Anyone an idea about how to do this? Thanks in advance, Sjoerd |
[Prev in Thread] | Current Thread | [Next in Thread] |