lua-users home
lua-l archive

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


On 21/12/2012, at 2:43 AM, Owen Shepherd <owen.shepherd@e43.eu> wrote:

> Why not just set packages.loaded[name] at the top of each of the module files?

That's not a bad idea: it's no more fiddly than the alternative that Steve, Finn and I proposed, and it means you don't have to check for the presence of "add" every time __add is called.

I have to move the 'require"add"' to below expression's new method - since new is called in add's main chunk.

Thanks!