From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Clinton Ebadi Newsgroups: gmane.lisp.guile.devel Subject: Re: macros, procedure->macro Date: Fri, 12 Jul 2002 22:36:56 -0400 Sender: guile-devel-admin@gnu.org Message-ID: <200207122236.56581.unknown_lamer@unknownlamer.org> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1026527977 10583 127.0.0.1 (13 Jul 2002 02:39:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 13 Jul 2002 02:39:37 +0000 (UTC) Cc: guile-devel@gnu.org, guile-user@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17TCor-0002ka-00 for ; Sat, 13 Jul 2002 04:39:37 +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 17TCpQ-00050W-00; Fri, 12 Jul 2002 22:40:12 -0400 Original-Received: from whale.nocdns.com ([209.151.66.88]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17TCod-0004yh-00; Fri, 12 Jul 2002 22:39:23 -0400 Original-Received: from pool-151-196-175-252.balt.east.verizon.net ([151.196.175.252] helo=vsynth ident=mail) by whale.nocdns.com with asmtp (Exim 3.35 #1) id 17TClD-0007SK-00; Fri, 12 Jul 2002 22:35:52 -0400 Original-Received: from clinton by vsynth with local (Exim 3.35 #1 (Debian)) id 17TCmG-0002zQ-00; Fri, 12 Jul 2002 22:36:56 -0400 Original-To: Neil Jerram , Dirk Herrmann User-Agent: KMail/1.4.2 In-Reply-To: X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - whale.nocdns.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - vsynth.aletia.com 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:787 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:787 On Friday 12 July 2002 20:09, Neil Jerram wrote: > Thanks, that's helpful. So we won't support references to a macro > that is defined in a following top-level form, as in: > > (define-macro (foo x) `(list ,(bar x) ,x)) > (define-macro (bar x) `(* ,x ,x)) > > or is there a cunning plan that still allows us to support this? Just use r5rs macros: (use-modules (ice-9 syncase)) (define-syntax foo (syntax-rules () ((foo x) (list (bar x) x)))) (define-syntax bar (syntax-rules () ((bar x) (* x x)))) guile> (foo 5) (25 5) --=20 http://unknownlamer.org Facts do not cease to exist because they are ignored. -- Aldous Huxley Flag Burner. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel