chicken-hackers
[Top][All Lists]
Advanced

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

[Chicken-hackers] [PATCH] Fix for over-eager resolution of macro aliases


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Fix for over-eager resolution of macro aliases in IR macros
Date: Thu, 9 Aug 2012 21:06:08 +0200
User-agent: Mutt/1.4.2.3i

Hi all,

Megane found another modules & macros bug in the release candidate.
I think this is potentially annoying enough to put in the fix before
making a release (and the fix is conceptually simple enough too, IMO).

The attached patch ensures that symbols which correspond to builtins
are not renamed directly to the core builtin name (#%* in the example.
No, I'm not swearing, that's its name).  The fix just adds another
layer of indirection by implicitly renaming these symbols too, to avoid
capture of the form by outer macros or procedures.

All tests still pass, and the new test passes as well.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Attachment: 0001-Fix-implicit-renaming-to-avoid-using-core-aliases-di.patch
Description: Text document


reply via email to

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