[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Trouble with awk and syntax-case
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Trouble with awk and syntax-case |
Date: |
Tue, 6 Feb 2007 08:38:12 +0100 |
On 2/9/07, address@hidden <address@hidden> wrote:
I noticed that when i require syntax-case first it works.
Is this some kind of bug or do i allways have to load syntax-case before
something which utilises some sort of macro transformer itself?
Hi, Tim!
The problem is that extensions that replace the macro-expander (like
syntax-case or syntactic-closures) will not have access to macros that
have been defined in the context of the previously running expander
(there is now support for "chaining" expanders, which would end up in
a mess). So you load "awk", define a low-level macro, load "syntax-case",
and replace the low-level expander (and thus throwing away all defined
macros). Now only macros defined using the new expander are visible.
cheers,
felix