[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (alpha-rc4) now available
- From: Patrick Rapin <toupie300@...>
- Date: Wed, 24 Nov 2010 16:33:47 +0100
> 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.