Re: [Chicken-users] How to use units and modules together?

2017-04-30 Thread Matt Welland
That did the trick. Thanks Evan. On Sun, Apr 30, 2017 at 9:32 PM, Evan Hanson wrote: Hi Matt, You're very close. The only step you missed was emitting an import file for your "other" module so that csc knows what to do when you "(import other)" in main.scm. This should

Re: [Chicken-users] How to use units and modules together?

2017-04-30 Thread Evan Hanson
Hi Matt, You're very close. The only step you missed was emitting an import file for your "other" module so that csc knows what to do when you "(import other)" in main.scm. This should work (note "-j other"): csc other.scm -c -j other csc other.o main.scm Cheers, Evan

[Chicken-users] How to use units and modules together?

2017-04-30 Thread Matt Welland
Is using units and modules together supported? I'd like to use modules but don't want to have to install them as eggs. I have tried this: =main.scm= (declare (uses other)) (import other) (other-print "Hello") ==end =other.scm= (declare (unit other)) (module other