lua-users home
lua-l archive

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


> 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