lua-users home
lua-l archive

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


Well, depends on what you mean by "preloaded", there's also package.preload :)

Norman Ramsey wrote:
Looking at the source, it does seem that if I want to provide some
sort of precompiled or preloaded modules, I could simply write my own
specialized package loader and then do

  table.insert(package.loaders, 1, myloader)

where 'myloader' returns a function on successful load, string on
error, and nil otherwise. Then everything would be great, right?

Norman