[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Update #4 to Lua 5.1-work3 loadlib cleanups
- From: David Burgess <dburgess@...>
- Date: Wed, 29 Dec 2004 09:42:45 +1000
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).
>