[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: changes in 'require'
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 14 Jul 2005 09:14:41 -0300
> One way to make this less subversive is to say that a loader's job is to
> actually load a package into Lua, not simply obtain a function to be
> invoked by require(). With the change, require would check _LOADED[name]
> to see if a given loader succeeded.
This approach makes difficult to ensure consistency in the way a module
is called (arguments, handling of the returned value, etc.). It also
mkes difficult to create new loaders.
-- Roberto