[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Redefinition of a syntax keyword

From: John Cowan
Subject: [Chicken-users] Redefinition of a syntax keyword
Date: Sun, 16 Jun 2013 13:02:08 -0400
User-agent: Mutt/1.5.20 (2009-06-14)


Evan Hanson scripsit:

> I don't think this is specific to `rec`, but is simply the way CHICKEN
> handles syntax, 

I don't mean to imply otherwise.  But I consider it a pretty serious bug.
A REPL should allow the redefinition of a syntax keyword as a variable.
What we get now is a big mess, where it's redefined in operand position
but not in operator position:

(c) 2008-2013, The Chicken Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.8.2 (rev 6edccb4)
windows-cygwin-x86 [ manyargs dload ptables ]
compiled 2013-06-11 on LNGNYCL-FDB00M1 (CYGWIN_NT-5.1)

#;1> (define-syntax noodle
  (syntax-rules () ((noodle) (print "noodle"))))
#;2> (define noodle 32)
#;3> (noodle)
#;4> noodle

You know, you haven't stopped talking           John Cowan
since I came here. You must have been 
vaccinated with a phonograph needle.            address@hidden
        --Rufus T. Firefly

reply via email to

[Prev in Thread] Current Thread [Next in Thread]