chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Problem accessing macro from module


From: felix winkelmann
Subject: Re: [Chicken-users] Problem accessing macro from module
Date: Tue, 23 Jan 2007 08:28:01 +0100

On 1/22/07, Abdulaziz Ghuloum <address@hidden> wrote:

For compilable macros to work, a few minor changes need to be made to
the psyntax implementation (egg) in chicken.  Mainly, the ctem and rtem
values need to be set to appropriate values when evaluating in the repl
and when compiling a file. (described in psyntax.ss under
 /Initial mode sets/.)


The problem lies somewhere else: The "load" of "pfn.so" is a run-time
operation - it is evaluated at run-time and the compiler can not (and should
not) try to infer compile-time operation (i.e. syntax) from code that only has a
meaning at run-time ("load" might be redefined). This example works in
ikarus because
it is interactive by nature and a in-core compiler (not a batch compiler as
chicken is). There is nothing wrong with the psyntax implementation of
chicken per se. Chicken just follows a different compiler model.


cheers,
felix




reply via email to

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