it works great ! Thanks a lot cyrille
On Monday, May 7, 2012, Marc Feeley wrote:
On 2012-05-07, at 11:54 AM, Bradley Lucier wrote:
On May 8, 2012, at 12:20 AM, Cyrille Duret wrote:
In fact I want to use the prelude option of the compiler inside the
interpreted mode.
I have not seen any prelude: option in the compile-file function.
Ah, so this may be a bug (or a missing feature) but it doesn't appear to
have anything specifically to do with macros, really.
The command line I use actually in my Makefile gsc-gambit -prelude '(include "test-macro.scm")' test-simple.scm
Marc?
When using the compiler interactively, by calling compile-file, the compiler will automatically import the macros from the interaction environment. So this should suffice:
(eval '(include "test-macro.scm")) (compile-file "test-simple.scm")
Marc