lua-users home
lua-l archive

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


	Hi David,

On Fri, 24 Dec 2004, David Burgess 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).
> >
> In Lua 5.0 I patched loadliv to use the lowercased last component of the
> library path(the filename) as the key. This suited *my* needs. Methinks
> it is not unreasonable to enforce uniqueness of the filename or the
> entry point name. I believe that MAC entry point names must be
> unique in any case.
	How do you solve this:

require"socket.http"
require"xmlrpc.http"
require"soap.http"

	I think you could eliminate the '.' or '/' or whatever
punctuation character the library path name contains, but the
package name is important.

	Tomas