Re: [Chicken-users] Like 'include', but different?

2018-08-25 Thread kooda
Mark Carter wrote: > I have code where I 'include' other files. Suppose I compile that file. > As part of execution, it will try to load those other files, which isn't > what I want. > > Is there a way of telling chicken that during the interpretation or > compilation, the file should be

[Chicken-users] Like 'include', but different?

2018-08-23 Thread Mark Carter
OK, I think I've figured it out. In the calling code (calc.scm), I have to do something like: (cond-expand  (compiling (declare (uses calc-yy)))  (else (load "calc-yy.scm"))) In compiling, I have to do: csc -unit calc-yy -c calc-yy.scm csc calc.scm calc-yy.o That seem to work.

[Chicken-users] Like 'include', but different?

2018-08-23 Thread Mark Carter
I have code where I 'include' other files. Suppose I compile that file. As part of execution, it will try to load those other files, which isn't what I want. Is there a way of telling chicken that during the interpretation or compilation, the file should be loaded, but during execution, don't