lua-users home
lua-l archive

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


> 
> > 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!

Interesting, but not sure I get it... could you post your original sample
code, in this setup?