lua-users home
lua-l archive

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

On 6 July 2012 18:32, Paco Willers <> 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.