From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: illegal uses of define in guile Date: 18 Oct 2002 23:55:41 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <87r8en1kf6.fsf@zagadka.ping.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034987158 26714 80.91.224.249 (19 Oct 2002 00:25:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2002 00:25:58 +0000 (UTC) Cc: 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 182hRC-0006wS-00 for ; Sat, 19 Oct 2002 02:25:54 +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 182f6T-00079C-00; Fri, 18 Oct 2002 17:56:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 182f5g-0006pe-00 for guile-devel@gnu.org; Fri, 18 Oct 2002 17:55:32 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 182f5e-0006p3-00 for guile-devel@gnu.org; Fri, 18 Oct 2002 17:55:31 -0400 Original-Received: from mail.dokom.net ([195.253.8.218]) by monty-python.gnu.org with esmtp (Exim 4.10) id 182f5d-0006ow-00 for guile-devel@gnu.org; Fri, 18 Oct 2002 17:55:29 -0400 Original-Received: from dialin.speedway43.dip26.dokom.de ([195.138.43.26] helo=zagadka.ping.de ident=qmailr) by mail.dokom.net with smtp (Exim 3.32 #2) id 182f69-0000Hf-00 for guile-devel@gnu.org; Fri, 18 Oct 2002 23:56:01 +0200 Original-Received: (qmail 12714 invoked by uid 1000); 18 Oct 2002 21:55:41 -0000 Original-To: Dirk Herrmann In-Reply-To: Original-Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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:1562 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1562 Dirk Herrmann writes: > Currently, guile allows the following: > (if (not (defined? '%load-verbosely)) > (define %load-verbosely #f)) > as can be found in r4rs.scm. > > This is in contrast to R5RS (maybe even already in contrast to R4RS, > but I haven't checked that). Allowing such placements of define will make > it impossible to determine statically whether after evaluation of the > form the corresponding identifier will be bound or not. That is, we > should disallow this behaviour. I think we can continue to support it, when people really want us to. The new.model.txt needs to be adapted a bit, but not much, I think. This will affect the optimizations a compiler might make, of course, and maybe we should warn people that such uses of 'define' are questionable. We can also disallow them in 'R5RS' mode, when we have such a thing. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel