lua-users home
lua-l archive

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

+1 to this idea.
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

HyperHacker <> wrote:
I feel like this idea has been brought up before, but I don't recall
the consensus. Presently, require() accepts only one argument. Why not
change it to require(name, ...) and pass all additional args on to the
module? The module can then retrieve them from ... just as it would if
you did loadfile(name)(...).

Sent from my toaster.