lua-users home
lua-l archive

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


> The "and" in your proposal explains why there is no default. Should
> it look on both pathes? In which order? Or only one? Which one? All
> these cases seem quite common. (Moreover, 'require' itself may
> search in other places, if the program adds other searchers.)

These are good questions. My original idea was to look in the path
formed by the concatenation of (in that order):
  package.path .. ";" .. package.cpath
This is the default behavior of require if I am right. It is true that
if additional searchers are set,  the feature is less interesting.