From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.lisp.guile.devel Subject: Re: define and modules Date: Wed, 6 Nov 2002 12:51:35 -0500 Sender: guile-devel-admin@gnu.org Message-ID: <0211061251351I.07034@locke.free-expression.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1036606309 323 80.91.224.249 (6 Nov 2002 18:11:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2002 18:11:49 +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 189Uea-000055-00 for ; Wed, 06 Nov 2002 19:11:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 189Ua5-00049c-00; Wed, 06 Nov 2002 13:07:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 189UR1-00015F-00 for guile-devel@gnu.org; Wed, 06 Nov 2002 12:57:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 189UQy-000141-00 for guile-devel@gnu.org; Wed, 06 Nov 2002 12:57:46 -0500 Original-Received: from rockridge.uits.indiana.edu ([129.79.1.74]) by monty-python.gnu.org with esmtp (Exim 4.10) id 189UQx-00013b-00 for guile-devel@gnu.org; Wed, 06 Nov 2002 12:57:43 -0500 Original-Received: from fontz.uits.indiana.edu (fontz.uits.indiana.edu [129.79.1.76]) by rockridge.uits.indiana.edu (8.12.1/8.12.1/IUPO) with ESMTP id gA6Hvgpu011001; Wed, 6 Nov 2002 12:57:42 -0500 (EST) Original-Received: from locke.free-expression.org (dial-123-182.dial.indiana.edu [156.56.123.182]) by fontz.uits.indiana.edu (8.12.1/8.12.1/IUPO) with SMTP id gA6HvejK000069; Wed, 6 Nov 2002 12:57:40 -0500 (EST) Original-To: Dirk Herrmann X-Mailer: KMail [version 1.2] In-Reply-To: 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:1652 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1652 On Wednesday 06 November 2002 12:20, Dirk Herrmann wrote: > On Wed, 6 Nov 2002, Lynn Winebarger wrote: > > > > > (define define-private define) > > "Syntax error: invalid use of define" or "Syntax error: invalid define form"? > > I think this is not general enough. It works for the special case of > define, but the point is not, that the define form is broken, but that a > macro is used as an argument to something else. You mistake which 'define the error refers to I think. It refers to the 2nd appearance of 'define, not the first; `form' refers to the bare identifier. Because macro expansion should occur _before_ the evaluation of the arguments of the outer define. In other words: You're right that it shouldn't be detected as special case of the outer define failing, but rather as one of the macro expansion failing. Lynn _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel