lua-users home
lua-l archive

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


Hi,

To make sure I understand, let me restate this as "require will issue
requires down the hierarchy".

with
require'foo.bar'

the implied require 'foo'
is only called if it foo not loaded (i.e. in package.loaded)?

That is correct.

Foo has enough information to figure out whether it was required
directly by the user, or implicitly by require"foo.bar".

It can chose what to do based on this information.

I think it would solve a problem for me.

I hope it does!

[]s,
Diego.