[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Organizing sources
- From: Michal Kottman <k0mpjut0r@...>
- Date: Fri, 6 Jul 2012 18:41:31 +0200
On 6 July 2012 18:32, Paco Willers <email@example.com> wrote:
> That's interesting. Is was wondering too. When to use a module (require) and
> when to use dofile...
You can use require for something which you want to load only once and
reuse, i.e. code, modules, classes in separate files. I use dofile to
compile something which can change during the run of the program, like
data, generated code, or live-coded modules.