From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette <matt.wette@gmail.com> Newsgroups: gmane.lisp.guile.user Subject: convert environment to module `name' Date: Sat, 4 Mar 2017 10:57:19 -0800 Message-ID: <179E954D-B043-4044-B930-FAB621149514@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1488654088 7996 195.159.176.226 (4 Mar 2017 19:01:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2017 19:01:28 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Mar 04 20:01:23 2017 Return-path: <guile-user-bounces+guile-user=m.gmane.org@gnu.org> Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from <guile-user-bounces+guile-user=m.gmane.org@gnu.org>) id 1ckEvi-0001WJ-9D for guile-user@m.gmane.org; Sat, 04 Mar 2017 20:01:22 +0100 Original-Received: from localhost ([::1]:36305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <guile-user-bounces+guile-user=m.gmane.org@gnu.org>) id 1ckEvo-0000xJ-Ed for guile-user@m.gmane.org; Sat, 04 Mar 2017 14:01:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <matt.wette@gmail.com>) id 1ckErx-0006no-K0 for guile-user@gnu.org; Sat, 04 Mar 2017 13:57:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <matt.wette@gmail.com>) id 1ckEru-0008Bw-Il for guile-user@gnu.org; Sat, 04 Mar 2017 13:57:29 -0500 Original-Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:35689) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <matt.wette@gmail.com>) id 1ckEru-0008Ao-9f for guile-user@gnu.org; Sat, 04 Mar 2017 13:57:26 -0500 Original-Received: by mail-pf0-x235.google.com with SMTP id j5so44053608pfb.2 for <guile-user@gnu.org>; Sat, 04 Mar 2017 10:57:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=VW8uDDOMC0Z2tU7m5gb3XAMPOWbHeHBCU4s1qQFbavI=; b=IQT8deYx8NDgbPuUIjrrieU9CVKQxYo7iRz0sUtjgctGFCo1G37E/f00pHZYOH5R/2 GEZK8rLuNYbslDu7l58ROvFxDxTi5eexjcrVj91rWuw1bcNHCnj7YYxIb+CJ/IXpS+W3 l/UisRm/4E/XMUK9vRazOqvb8fEFj92NW78oF7zCTLAMlg2h9enK7UbFVbkjakr3SRx9 4pkrQnHKooVQLD67qT/a1IA3U38h2MPZlHURtwSyoyqzixmnpW5+H986uvGC+L/g5aNh p59LNaRkFRRRs+J1M4mfe8drL6v3ZbffCHn8sVI3x9PQix1FUOAgAbR7C5ucZd3HULur xnsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=VW8uDDOMC0Z2tU7m5gb3XAMPOWbHeHBCU4s1qQFbavI=; b=S0KLmV9Gi1ooEhEzrKJfwzrLtUFxf9LZTH+qE5hqQZx+1838rI+lAxPdUXAFyeqnWB eZ00KBfwNfClgjf/j3OlL/rVCfi421gR5O3ot4DyPOB0bKxjUV+/055RssswZiJ+DGfv fR6uVC4NBTrhcsywe7Idxex3teOCfbeTdLOyzIs2Mta4Ielij9I1I/fqDb6BTKPKPAu5 lxZdmgh4EuRbRgjXNCCwmiqVYP+VOXQedVCUF5kVllwetdi4gZeIkkdcNqUvyhIxXNo7 itG+Pa6uNMwqqAkZSzenHwR2vN64//KWbY/5MUnpTQTGE5XObwubjfsPizAJg4JMf36W TXtg== X-Gm-Message-State: AMke39mboGz3578TwUXq+O4XD9zes6/y2F35daZJKVZlX6cNS0D56aHLLdTsDLFn6AX0ZA== X-Received: by 10.99.55.25 with SMTP id e25mr10850508pga.15.1488653842982; Sat, 04 Mar 2017 10:57:22 -0800 (PST) Original-Received: from [192.168.2.114] (216-165-236-44.championbroadband.com. [216.165.236.44]) by smtp.gmail.com with ESMTPSA id s21sm30511663pfs.87.2017.03.04.10.57.21 for <guile-user@gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Mar 2017 10:57:21 -0800 (PST) X-Mailer: Apple Mail (2.3259) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::235 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions <guile-user.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guile-user>, <mailto:guile-user-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/guile-user/> List-Post: <mailto:guile-user@gnu.org> List-Help: <mailto:guile-user-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guile-user>, <mailto:guile-user-request@gnu.org?subject=subscribe> Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" <guile-user-bounces+guile-user=m.gmane.org@gnu.org> Xref: news.gmane.org gmane.lisp.guile.user:13396 Archived-At: <http://permalink.gmane.org/gmane.lisp.guile.user/13396> I am working on =E2=80=9CCompiling to the Virtual Machine=E2=80=9D. = Guile passes an `env=E2=80=99 object to the parser/compiler which is = apparently the module object for the desired execution environment. To reference top-level variables in (external) tree-il I am using '(toplevel foo) but I guess I should be using '(@ (mod from env) foo) I don=E2=80=99t know how to get the list-symbol path =E2=80=9Cmod from = env=E2=80=9D from the env argument. Any ideas? The following generates an error: `(@ ,env foo) where env in write format looks like=20 <directory (guile-user) 10c8fbbd0> Matt