[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] Bug shadowing syntactic keyword
From: |
Marijn Schouten (hkBst) |
Subject: |
Re: [Chicken-hackers] Bug shadowing syntactic keyword |
Date: |
Wed, 22 Jul 2009 12:16:56 +0200 |
User-agent: |
Thunderbird 2.0.0.22 (X11/20090630) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Cowan wrote:
> Thomas Bushnell BSG scripsit:
>
>> But if we try "begin" as the formal, it fails interestingly:
>> ((lambda (begin) (begin 1 2 3)) (lambda args args))
>> => ((1 2 3))
>>
>> And if we try "define" as the formal, we get a spinning infinite loop of
>> some kind:
>> ((lambda (define) (define 1 2 3)) (lambda args args))
>> => never returns
>
> Yes. In effect, the primitive syntax indicators of R5RS are reserved
> words in Chicken 3. Chicken 4 does not have this bug, and it is
> overridden if you load any of the macro packages into Chicken 3.
>
this bug also still exists in chicken-4.0:
$ csi
CHICKEN
(c)2008-2009 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 4.0.0 - SVN rev. 13887
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables applyhook ]
compiled 2009-04-06 on hakbak (Linux)
#;1> ((lambda (begin) (begin 1 2 3)) (lambda args args))
((1 2 3))
Marijn
- --
If you cannot read my mind, then listen to what I say.
Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpm5xgACgkQp/VmCx0OL2wQ4wCgkMePksKVdEBysgegKd+W2rv0
dCkAoJ9kUTuLvbfySPX8gUrLz9p+yOB+
=ArDg
-----END PGP SIGNATURE-----