[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: how to organize compiled lua files in a project?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 9 Dec 2006 09:19:21 -0200
> Is there some guide(or best practices) on how to organize the compiled
> lua files in a project (to assure the 'require', 'dofile' still works
> after the files are compiled) ?
A simple way is to compile all files into a single precompiled one. If
after loading those files you don't call 'require' or 'dofile' again,
then you can provide stubs for them in the first file given to luac.