lua-users home
lua-l archive

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


> If this is meant as part of the "import"
> scheme, I would suggest that import's internals prepare the stack so that
> the table to use is already there before the library entrypoint is called.
> (A package gets its table passed as a parameter.)

Ah, no. The caller has nothing to do with the namespace ;)
The place a function will be after 'opening' a lib uis fixed by the module
author. I actually only want to 'collect' all libaries into _one_ global
table. If the script-user wants to 'alias' them later, so be it ;)

-Martin