chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Multi-file programs


From: Graham Fawcett
Subject: Re: [Chicken-users] Multi-file programs
Date: Mon, 2 Apr 2007 13:26:07 -0400

On 4/2/07, Alex Queiroz <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]