lua-users home
lua-l archive

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


On 10/18/11, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
>> Actually, what I don't understand is dofile; I always find it wierd
>> that it can't be passed arguments...
>
> For that, use loadfile:
> 	assert(loadfile(x))(1,2,3,4)
>
>

Yes, that's exactly why I think dofile feels like... well, cruft (of
course I can understand that its absence would break stuff).