From: "Sjoerd van Leent Privé" <svanleent@gmail.com>
To: guile-user@gnu.org
Subject: Environments
Date: Mon, 03 Dec 2012 16:24:24 +0100 [thread overview]
Message-ID: <50BCC428.3090204@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1355 bytes --]
next reply other threads:[~2012-12-03 15:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 15:24 Sjoerd van Leent Privé [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-03-23 18:55 environments Ian Zimmerman
2004-03-24 0:26 ` environments Marius Vollmer
2004-03-24 1:21 ` environments Ian Zimmerman
2004-03-24 15:06 ` environments Paul Jarc
2004-03-24 17:39 ` environments Ian Zimmerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50BCC428.3090204@gmail.com \
--to=svanleent@gmail.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).