|
From: | Julian v. Bock |
Subject: | Re: Problem with cond macro. |
Date: | Tue, 16 Apr 2002 13:10:32 +0200 |
User-agent: | Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu) |
Hi >>>>> "PV" == Panagiotis Vossos <address@hidden> writes: PV> (define-syntax foo (syntax-rules (=>) ((_ a => b) b) ((_ a b c) (+ PV> a b c)))) PV> (foo 10 => 20) (let ((=> 10)) (foo 10 => 20)) PV> As I understand it, the first use of the macro should return 20 PV> and the second 40 (SCM and s48 indeed return these values). I agree. PV> (foo 10 => 20) (let ((=> 10)) (foo 10 => 20)) guile> 20 20 Sounds like a bug in guile. Julian
[Prev in Thread] | Current Thread | [Next in Thread] |