package.loaders |
---|
Summary Table of package loaders Prototype
Description This is a table of the loaders that Lua calls when handling the "require" function. As defined in the source code they are presently done in this order: Preloader Lua loader DLL loader All-in-one loader You could conceivable alter the behaviour of the "require" function be re-odering the loaders (eg. load DLLs before Lua code), deleting a loader, or adding your own. The existing loaders appear to push a string describing what files they failed to load (which you can see if you load a non-existant package), so any loaders you write yourself could return the loaded function on success, and an error string on failure. See Also ... Lua functions
Topics
(Help topic: lua=package.loaders) |
Enter a search string to find matching documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.