lua-users home
lua-l archive

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


My proposal is basically to change require to call the module with args.

Let's say your module looks like this:
print(...)

The current require() does this:

> require("mymod","with","args")
mymod

My proposal is to make it do this:

> require("mymod","with","args")
mymod    with    args

(PS: Obviously when using require with args it should reload the module instead of using the loaded one)