[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Extending dofile() to pass arguments
- From: Patrick Rapin <toupie300@...>
- Date: Wed, 4 Jan 2012 09:13:32 +0100
> 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