From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: Bug in eval-string? Date: 08 Aug 2002 22:27:59 +0100 Sender: guile-devel-admin@gnu.org Message-ID: References: <20020808125641.GA23831@www> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1028842348 20042 127.0.0.1 (8 Aug 2002 21:32:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2002 21:32:28 +0000 (UTC) Cc: guile-devel@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17cutP-0005D9-00 for ; Thu, 08 Aug 2002 23:32:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17cuu7-0002VS-00; Thu, 08 Aug 2002 17:33:11 -0400 Original-Received: from mail.uklinux.net ([80.84.72.21] helo=s1.uklinux.net) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17cuta-0002Ss-00 for ; Thu, 08 Aug 2002 17:32:38 -0400 Original-Received: from portalet.ossau.uklinux.net (ppp-1-136.lond-b-1.access.uk.tiscali.com [80.40.1.136]) (authenticated) by s1.uklinux.net (8.11.6/8.11.6) with ESMTP id g78LWSs15420; Thu, 8 Aug 2002 22:32:29 +0100 Original-Received: from laruns.ossau.uklinux.net.ossau.uklinux.net (laruns.ossau.uklinux.net [192.168.1.3]) by portalet.ossau.uklinux.net (Postfix on SuSE Linux 7.2 (i386)) with ESMTP id D5FF1170F; Thu, 8 Aug 2002 22:33:22 +0000 (GMT) Original-To: rm@fabula.de Original-Lines: 33 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1029 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1029 >>>>> "rm" == rm writes: rm> Hello list, rm> according to the documentation, 'eval-string' rm> evaluation "... takes place in the environment rm> returned by the procedure interaction-environment". rm> Unfortunately this doesn't seem to work for me rm> (see the following test case): rm> (let ((interaction-environment (lambda () boxx))) rm> (format #t "Meaning of life in a box is: ~A\n" rm> (eval-string "meaning-of-life"))) This isn't Elisp! The interaction-environment variable introduced by your let has nothing to do with the builtin interaction-environment, to which the documentation refers. BTW, note that the builtin interaction-environment is (at least at the moment) identical to current-module. guile> (define boxx (make-module)) guile> (set-module-kind! boxx 'directory) directory guile> (module-define! boxx 'meaning-of-life 42) #f guile> (save-module-excursion (lambda () (set-current-module boxx) (eval-string "meaning-of-life"))) 42 guile> Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel