[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Update #4 to Lua 5.1-work3 loadlib cleanups
- From: Tomas <tomas@...>
- Date: Mon, 27 Dec 2004 09:19:57 -0200 (BRDT)
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:
I think you could eliminate the '.' or '/' or whatever
punctuation character the library path name contains, but the
package name is important.