lua-users home
lua-l archive

Re: Extending dofile() to pass arguments

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


> Just wondering if there's a compelling reason not to do this.
Just a year ago, I asked for the same thing [1].
One conclusion from the thread was that the behavior of the argument
table "arg" is hard to define.
In LuaDura, I have redefined dofile to accept a variable number of
arguments several years ago.
No user ever complained about side effects.
The only problem IMHO is that LuaDura users may consider that this is
a standard feature...
[1] http://lua-users.org/lists/lua-l/2011-01/msg00068.html

AltStyle によって変換されたページ (->オリジナル) /