[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Explicit renaming macros behavior during interpreta
From: |
Thomas Chust |
Subject: |
Re: [Chicken-users] Explicit renaming macros behavior during interpretation and compilation |
Date: |
Thu, 15 Apr 2010 15:40:01 +0200 |
2010/4/15 Jeronimo Pellegrini <address@hidden>:
> [...]
> This program seems to work fine when loaded from csi, but csc
> complains that a procedure used inside the renaming procedure
> is unbound (even though it was defined shortly before the
> macro definition):
> [...]
Hello Jeronimo,
the environment in which syntax transformers are run is distinct from
the one in which the compiled code is eventually run. You probably
want to use define-for-syntax instead of define to introduce your
helper procedure into the environment for syntax transformers.
Ciao,
Thomas
--
When C++ is your hammer, every problem looks like your thumb.