lua-users home
lua-l archive

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

> 5.1 work4 has enhanced loadfile() so that it takes a second optional
> parameter, namely the path to search for the file.
> My question is whether dofile()  should have the take the same 
> optional second parameter?

Now that 5.1 allows access to unnamed varargs via "...", you may argue that
it'd be better to map

But perhaps it'd be simpler to just do as you suggest -- people needing
to pass arguments to chunks could use
directly (and be clear about it).