On 4/2/07, Alex Queiroz <[EMAIL PROTECTED]> wrote:
What's the usual way to write programs with several files?
(require-extension) or (unit)/(use) declarations? (unit)/(use) seems
the natural way, but since they do not work during interpretation they
cannot be used for RAD.
Note that (use) and (require-extension) do the same thing; and that's
they way to go if you're doing rapid development. In cases where your
code does not need to be compiled, (use foo) will load your "foo.scm";
if later you compile it to a shared library, the same call will load
foo.so / foo.dll instead. Note that repeated (use foo) calls will not
reload the file/library, in either case.
Personally, I've only ever used (unit) when I was building a shared
library from multiple files. It is definitely a compiler-oriented
directive.
Graham
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users