[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: RES: package system modification (module loaders)
- From: duck <duck@...>
- Date: Wed, 12 Jan 2005 09:30:46 +0000
> The package proposal states that a loader function will be searched for
> in the package.preload table. This table exists to ensure it is
> possible to bypass the filesystem search for the module. It's main use
> is to enable static linking of modules, but it was designed with other
> uses in mind (Lua modules loaded from Windows resources, from LAR files,
> from Zip files, you name it).
Yep, and it is IMO a very simple and elegant way of doing this.
It allows you all the benefits of OS-level dynamic linking without
forcing you to call an OS-level function with the name of an OS-level
object for it to work upon.