From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Keeter Newsgroups: gmane.lisp.guile.user Subject: Transient environment with standard functions Date: Sat, 28 May 2016 16:16:45 -0400 Message-ID: <30B0B35B-F6B0-4FD4-A35D-3E6542C3871F@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1464466639 17882 80.91.229.3 (28 May 2016 20:17:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 May 2016 20:17:19 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat May 28 22:17:14 2016 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 1b6kfa-0000re-AK for guile-user@m.gmane.org; Sat, 28 May 2016 22:17:14 +0200 Original-Received: from localhost ([::1]:54120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6kfZ-0005hu-5v for guile-user@m.gmane.org; Sat, 28 May 2016 16:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6kfD-0005hn-SX for guile-user@gnu.org; Sat, 28 May 2016 16:16:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6kfA-0007Lx-NI for guile-user@gnu.org; Sat, 28 May 2016 16:16:51 -0400 Original-Received: from mail-qg0-x236.google.com ([2607:f8b0:400d:c04::236]:36630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6kfA-0007Lt-IL for guile-user@gnu.org; Sat, 28 May 2016 16:16:48 -0400 Original-Received: by mail-qg0-x236.google.com with SMTP id q32so64357086qgq.3 for ; Sat, 28 May 2016 13:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-transfer-encoding:subject:message-id:date:to :mime-version; bh=0ou0e1c5cpVIYNcX4d/vCb8XDfva34zhzH/ssv7aHgc=; b=hFQaZhZuyE2/PCCH/hlLAzTsWvDGpYoDg5bB9n6Wp0xVJwApy+IfDKtPXXe9apYB8I Ld7kE4OsD5rB5ofG5781l6U8gso94hzHGUb5h+to/Gph2ZVBInJICvmYCfj3OX1KgTBX OBQNNHi8BGA1qm5jAGaGtewBbm0yEBRzEocdfDdfOoeoYn5bq/DS0evNwUlQnVM4TXkK TbbPn1mZ0EHD2m9GnMczwKUkD2r3AJnl4Oyb24dGLunF9Hdh4dHrzUf6TSpDS1yBjhQq Nrdsa0Lvjn5Z2DsocrpArncffhSYGqQ7NUJdkA7aCDvv6s7ML6hHi5w9qfInpryE7exv /RDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=0ou0e1c5cpVIYNcX4d/vCb8XDfva34zhzH/ssv7aHgc=; b=XU8Awp4viqCFmQGSmThuLpwDgJ7+rud8FU8CvSBaVWbArqmCiOsEGRF0pQ2hJIKYQx PEKjkAokGz8GHDRwBw36nS2uSN2up2o6o9PNxTWEjJUqyMMhTRGBQLNSEuK8ernBkJfR bM+xqn9cLgNr53nZ7d77mDtevM73SjLgpzEAQxT3wO3on2FzvtluDUksbsi4S01ddm92 dRqjBNwaDlv7B1yhpVFbSSNfErPh9vMZxuDBRgXLLU7qhCYc6l4Wn4kSVfroXTHRubJW eXG0BksTgko1otiEhdrlRMnMLh+ywhOnnCLTl3mewHj+iQO6W1PptdhKbniD4alhQfIl Gf5w== X-Gm-Message-State: ALyK8tJPvTMEf2T1t2m8vBrVooWEBe3czd92PZ+yT+LpAzndjDCQuU2q03lXJu8+9xndZA== X-Received: by 10.140.22.232 with SMTP id 95mr19136635qgn.24.1464466607700; Sat, 28 May 2016 13:16:47 -0700 (PDT) Original-Received: from [192.168.1.2] (209-6-50-175.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com. [209.6.50.175]) by smtp.gmail.com with ESMTPSA id l35sm7254072qtd.10.2016.05.28.13.16.46 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 May 2016 13:16:46 -0700 (PDT) X-Mailer: Apple Mail (2.1878.6) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c04::236 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.lisp.guile.user:12582 Archived-At: I=92m trying to generate a temporary, transient environment that a = useful set of functions in it. The use case is eval=92ing a set of small code strings. Each = environment needs to be independent, so previous eval=92s don=92t leave anything in the = environment. I can make a dummy environment with (null-environment 5), but it=92s = missing everything useful. Calling (scheme-report-environment 5) gives me a useful = environment, but the environment is shared (so effects from one eval can carry over, which is = undesirable). Any pointers? (resolve-module) seems like it could be useful, but the = #:version argument doesn=92t seem to work. Thanks, Matt=