From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aubrey Jaffer Newsgroups: gmane.lisp.guile.bugs Subject: Re: Bug with macros in SCM and Guile Date: Mon, 15 Jan 2007 21:26:07 -0500 (EST) Message-ID: <20070116022607.5405951D73E@home.voluntocracy.org> References: <5D389A9F-1903-4B48-970C-6D704EA11764@iro.umontreal.ca> <20070107034222.2934B51D737@home.voluntocracy.org> <87y7o3uddl.fsf@zip.com.au> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1169746885 17989 80.91.229.12 (25 Jan 2007 17:41:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Jan 2007 17:41:25 +0000 (UTC) Cc: bug-guile@gnu.org To: user42@zip.com.au Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Jan 25 18:41:22 2007 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HA8b9-0008Bb-TE for guile-bugs@m.gmane.org; Thu, 25 Jan 2007 18:41:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HA8b9-00084Q-5w for guile-bugs@m.gmane.org; Thu, 25 Jan 2007 12:41:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H6r3A-000782-FW for bug-guile@gnu.org; Tue, 16 Jan 2007 11:20:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H6r38-00075b-7j for bug-guile@gnu.org; Tue, 16 Jan 2007 11:20:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6r37-000755-Lu for bug-guile@gnu.org; Tue, 16 Jan 2007 11:20:37 -0500 Original-Received: from [216.148.227.155] (helo=rwcrmhc15.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6r37-00081w-2m for bug-guile@gnu.org; Tue, 16 Jan 2007 11:20:37 -0500 Original-Received: from home.voluntocracy.org (voluntocracy.org[71.232.110.168]) by comcast.net (rwcrmhc15) with ESMTP id <20070116161835m15005uhpje>; Tue, 16 Jan 2007 16:18:35 +0000 Original-Received: by home.voluntocracy.org (Postfix, from userid 500) id 5405951D73E; Mon, 15 Jan 2007 21:26:07 -0500 (EST) In-reply-to: <87y7o3uddl.fsf@zip.com.au> (message from Kevin Ryde on Tue, 16 Jan 2007 09:35:50 +1100) X-Mailman-Approved-At: Thu, 25 Jan 2007 12:41:05 -0500 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3476 Archived-At: | From: Kevin Ryde | Date: Tue, 16 Jan 2007 09:35:50 +1100 | | Aubrey Jaffer writes: | > | > | From: Marc Feeley | > | Date: Wed, 29 Nov 2006 15:58:57 -0500 | > | | > | For SCM it seems that a macro call is normally expanded when | > | an expression is encountered in a top-down traversal of the | > | code, but not always. For example, in the function bar2 below | > | the macro call to foo is expanded when bar2 is *called*, and | > | at that point a new definition of the macro foo has been | > | introduced. | | I thought that was the idea for defmacro, to expand when it runs, | and in fact to re-expand every time it's run. A little wasteful, | but it's emulating lisp style (or is it just emacs-lisp style) in | that isn't it? Looking at http://www.cs.cmu.edu/Groups/AI/html/hyperspec/HyperSpec/Body/mac_defmacro.html I don't see where it requires repeated evaluation. _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile