From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Barzilay Newsgroups: gmane.lisp.guile.devel,gmane.comp.lang.racket.devel Subject: Re: [racket-dev] Enhancement to the syntax system? Date: Tue, 10 Jul 2012 10:51:57 -0400 Message-ID: <20476.16781.257276.194149@winooski.ccs.neu.edu> References: <877gumufmq.fsf@gnu.org> <87r4stss4d.fsf@gnu.org> <878vf0o7gs.fsf@gnu.org> <87pq85dj8o.fsf@gnu.org> <87sjd058ia.fsf@gnu.org> <4FFC3D72.8070506@gentoo.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341931951 25010 80.91.229.3 (10 Jul 2012 14:52:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2012 14:52:31 +0000 (UTC) Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , guile-devel@gnu.org, "dev@racket-lang.org" To: Marijn Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jul 10 16:52:26 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sobna-0002cf-64 for guile-devel@m.gmane.org; Tue, 10 Jul 2012 16:52:22 +0200 Original-Received: from localhost ([::1]:55496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SobnZ-0000qb-9n for guile-devel@m.gmane.org; Tue, 10 Jul 2012 10:52:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SobnQ-0000oY-PM for guile-devel@gnu.org; Tue, 10 Jul 2012 10:52:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SobnL-0004r1-Jr for guile-devel@gnu.org; Tue, 10 Jul 2012 10:52:12 -0400 Original-Received: from winooski.ccs.neu.edu ([129.10.115.117]:51673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SobnL-0004pc-FQ; Tue, 10 Jul 2012 10:52:07 -0400 Original-Received: from winooski.ccs.neu.edu (localhost.localdomain [127.0.0.1]) by winooski.ccs.neu.edu (8.14.4/8.14.4) with ESMTP id q6AEpvGr005567; Tue, 10 Jul 2012 10:51:57 -0400 Original-Received: (from eli@localhost) by winooski.ccs.neu.edu (8.14.4/8.14.4/Submit) id q6AEpvvv005563; Tue, 10 Jul 2012 10:51:57 -0400 In-Reply-To: <4FFC3D72.8070506@gentoo.org> X-Mailer: VM 8.2.0a under 23.2.1 (x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 129.10.115.117 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14728 gmane.comp.lang.racket.devel:6397 Archived-At: 20 minutes ago, Marijn wrote: > > It seems to me that both these results cannot be correct > simultaneously, but I'll await the experts' opinion on that. This does look weird: #lang racket (define-for-syntax (f stx) #`(let ([x 1]) #,stx)) (define-syntax (m stx) (with-syntax ([zz (f #'x)]) #`(let ([x 2]) zz))) (m) evaluates to 1, but if I change the first two "stx" names into "x" *or* if I change the argument name for the macro to "x", then it returns 2. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life!