lua-users home
lua-l archive

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


Will you be changing to a value?
This is my last issue with loadlib.
Which is best a) just add another table or b) change the current one?
What do you think of it being accessible from Lua (excuse the noninventive name)
e.g.   package.lib

An example usage for this is the loading of scripts from resources
e.g. rcload(package.lib["mylib"])()

DB

On Thu, 23 Dec 2004 14:46:48 -0200, Roberto Ierusalimschy wrote:
> 
> We already put the handle in the registry, to avoid its collection.
> Currently the handle is the key, but it could be the value, with
> filename being the key (with an appropriate prefix to avoid name clashes
> in the registry).
>