lua-users home
lua-l archive

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


> Having require extend the global namespace is a runtime error waiting to
> happen.

Perhaps you mean "module" here, not "require" -- "require" does not
impose any policy on what the thing being required does: it simply
returns whatever the init code for the module returns.

> And as for consistency with the standard libraries, one should probably have
> to use require to get them as well.

Probably. One way to ensure this would be to have linit.c set them as preloaded,
but not call the init functions.
--lhf