lua-users home
lua-l archive

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


> 2010/8/2 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
> >> Aren't you talking about the package.preload table ? AFAIK it's not in
> >> the registry (here on 5.1.4 print(debug.getregistry().preload) outputs
> >> 'nil').
> >
> > In 5.2 it is there, with the key "_PRELOAD".
> 
> Is it still available in package.preload ? And in that case, which one
> is really used by the searcher if the user change the fields and
> define them to be different tables ?

Yes. _PRELOAD is the table used by require, package.preload is an
extra reference.

-- Roberto