From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Sjoerd_van_Leent_Priv=E9?= Newsgroups: gmane.lisp.guile.user Subject: Environments Date: Mon, 03 Dec 2012 16:24:24 +0100 Message-ID: <50BCC428.3090204@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------080105030501010902050700" X-Trace: ger.gmane.org 1354548272 30514 80.91.229.3 (3 Dec 2012 15:24:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Dec 2012 15:24:32 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Dec 03 16:24:45 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TfXsw-0007bZ-EU for guile-user@m.gmane.org; Mon, 03 Dec 2012 16:24:42 +0100 Original-Received: from localhost ([::1]:54615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfXsk-00029k-NC for guile-user@m.gmane.org; Mon, 03 Dec 2012 10:24:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfXsd-00029b-9Q for guile-user@gnu.org; Mon, 03 Dec 2012 10:24:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfXsV-0004II-HW for guile-user@gnu.org; Mon, 03 Dec 2012 10:24:23 -0500 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:43569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfXsV-0004Gt-9Q for guile-user@gnu.org; Mon, 03 Dec 2012 10:24:15 -0500 Original-Received: by mail-lb0-f169.google.com with SMTP id gk1so2612219lbb.0 for ; Mon, 03 Dec 2012 07:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=GSBq1Rk9AXrKGlhoOQT7yRtk3y8PRKaJx7rrqceSR70=; b=nKDi/TkvbdkKCTeyDRE5q6JA4OxnBZukUYw6AH7HDAKX5L8aMbOUtOOxxp4DHJxSNs F1tVmVentxm5URKlhM5d6bAygMqvECcMZmpzh+/+D98LwWNAsFqd3MMpWioQbBJTxvUZ 9aCH5X4715A4lSF4dVxKVkXqBzD7Fyts3AIRf3RgLD07pGxE2u4wrWRmnm7ke/MxSUpu nBAzz9/PqJ9jMg5zrd+bYU8OAhf1YGD9L9yNU0Jlxiv/x13iG1orTJ2vpmONVOhub8kt 0DZUjW4xLCHm3PnUWQToTn/gN4yW5l7MrdnRFHA6uTHOYiSJ13nKQABkm46VTfUNved2 rRMg== Original-Received: by 10.112.49.97 with SMTP id t1mr4422089lbn.58.1354548253866; Mon, 03 Dec 2012 07:24:13 -0800 (PST) Original-Received: from [172.16.3.14] (5352DA6A.cm-6-3d.dynamic.ziggo.nl. [83.82.218.106]) by mx.google.com with ESMTPS id t5sm5576021lbf.6.2012.12.03.07.24.11 (version=SSLv3 cipher=OTHER); Mon, 03 Dec 2012 07:24:12 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.217.169 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9723 Archived-At: This is a multi-part message in MIME format. --------------080105030501010902050700 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------080105030501010902050700 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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
--------------080105030501010902050700--