From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: rm@fabula.de Newsgroups: gmane.lisp.guile.devel Subject: Re: Bug in eval-string? Date: Mon, 12 Aug 2002 12:49:42 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <20020812104942.GA2209@www> References: <20020808125641.GA23831@www> <20020809093531.GA25104@www> <87y9be6ag7.fsf@zagadka.ping.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029148811 4596 127.0.0.1 (12 Aug 2002 10:40:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 12 Aug 2002 10:40:11 +0000 (UTC) Cc: rm@fabula.de, Neil Jerram , guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17eCcI-0001Br-00 for ; Mon, 12 Aug 2002 12:40:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17eCco-00041R-00; Mon, 12 Aug 2002 06:40:38 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17eCZr-0003By-00 for guile-devel@gnu.org; Mon, 12 Aug 2002 06:37:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17eCZo-0003Ba-00 for guile-devel@gnu.org; Mon, 12 Aug 2002 06:37:34 -0400 Original-Received: from www.elogos.de ([212.18.192.92]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17eCZn-0003BK-00 for guile-devel@gnu.org; Mon, 12 Aug 2002 06:37:31 -0400 Original-Received: by www.elogos.de (Postfix, from userid 5001) id A4F7A10482D; Mon, 12 Aug 2002 12:49:42 +0200 (CEST) Original-To: Marius Vollmer Content-Disposition: inline In-Reply-To: <87y9be6ag7.fsf@zagadka.ping.de> User-Agent: Mutt/1.3.24i 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:1064 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1064 On Sat, Aug 10, 2002 at 04:43:36PM +0200, Marius Vollmer wrote: > rm@fabula.de writes: > > > I think i (wrongly) assumend that eval-string is "syntactic sugar" > > for eval. > > There is a big difference between a macro and a function. Why did you > think that eval-string is a macro? (The documentation of eval-string > says that it is a procedure.) Because sometimes, late at night, i tend to overlook the obvoius -- this is a sign of age, you'll experience it too ;-) > > maybe the documentation should be modified: > > > > "Evaluation takes place in the environment returned by the\n" > > "procedure @code{interaction-environment}.") > > > > to > > "Evaluation takes place in the same environment as \n" > > "returned by the procedure @code{interaction-environment}.") > > I don't see the difference between the two. The question is, for > both, what is "the procedure interaction-environment". The name > refers to the procedure bound to the global variable that is named > "interaction-environment" in the guile-core module. Hmm, my english is probably not as clear as i want it to be: from the first version i get the impression that by modifying the procedure 'interaction-environment' i have control over the environment in which 'Eval-string' takes place. The second version tries to be a bit clearer over the fact that 'interaction-environment' just returns the environment (of course, since eval-string isn't a macro this is pretty much of no importance). > Most of this is > implicit and applies to all of the documentation. Do we need to make > this more explicit? I think 'eval-string' takening an optional parameter is cleaner. > > Wouldn't the 'eval*' interface be clearer and more orthogonal if > > eval-string would have a second, optional parameter specifying the > > environment/module in which evaluation should take place. > > Yes, this sounds good to me. I will make that change. > Thanks Ralf _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel