chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] simple macroexpand query


From: Graham Fawcett
Subject: Re: [Chicken-users] simple macroexpand query
Date: Thu, 12 May 2005 16:00:44 -0400

On 5/12/05, Greg Buchholz <address@hidden> wrote:
> 
> (display (macroexpand '(test 2)))
> 
> ...works perfectly like I'd expect it to when using the interpreter, but
> doesn't work the same with the compiler.  Is that the was it's supposed
> to be?

>From the Chicken FAQ: "Macro bodies that are defined and used in a
compiled source-file are evaluated during compilation and so have no
access to definitions in the compiled file. Note also that during
compile-time macros are only available in the same source file in
which they are defined. Files included via include  are considered
part of the containing file."

Worth reading, the Macros section of the FAQ has many more specifics
about macros and compiled code.

-- Graham




reply via email to

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