[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: work4 - loadfile and packaging
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 16 Jan 2005 21:49:55 -0200
> 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
dofile(f,a1,a2,a3)
into
loadfile(f)(a1,a2,a3)
But perhaps it'd be simpler to just do as you suggest -- people needing
to pass arguments to chunks could use
loadfile(f,path)(a1,a2,a3)
directly (and be clear about it).
--lhf