lua-users home
lua-l archive

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


Hi,

Rob Shaw wrote:
> The reason for the crash is that the stack is empty when called by
> loadlib(), but has one entry ("array") when called by require().
> [...]
> but I think this counts as a bug.  Do I get a reward?

Nope, no cigar. Check the online manual:
  http://www.lua.org/manual/5.1/manual.html#pdf-require

  ... Once a loader is found, require calls the loader with a
  single argument, modname. ...

Bye,
     Mike