lua-users home
lua-l archive

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

On 28/1/2010 7:05 PM, steve donovan wrote:
What is the precedence involved in require 'bit'?  Would it not pick
up the built-in module before going for a cpath search, even if the
built-in bit was not originally loaded?

I think code like the following is needed for the present 5.2:

package.loaded["bit"] = nil
require"bit"   -- load bitops