Re: [Funk-devel] Queries and States in Funk - Design Review
Status: Planning
Brought to you by:
awgh
From: felix w. <bun...@gm...> - 2007-09-27 05:43:58
|
On 9/24/07, Ben Kurtz <bk...@al...> wrote: > > * I've been asked if there is any way to make sure that files are included, > and I don't know how to do this in a way that works in both compiled mode > and in the interpreter. My current dirty hack is to write files that work > in the interpreter, and then separate files (ala. demo1.scm ) that are only > for compilation. Does anyone have a better way of doing this in Chicken? > I'm not sure I understand completely: The "include" macro includes source files, both in compiled and interpreted mode. If you want to have pieces of code that are only for compiled mode, you can wrap them in (cond-expand (compiled ...code for compilation...) (else ...code for interpretation...) ) cheers, felix |