[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: modules, require, magic
- From: joao lobato <btnfdp.lobato@...>
- Date: Tue, 18 Oct 2011 02:00:13 +0100
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).
- References:
- modules, require, magic, Eduardo Ochs
- Re: modules, require, magic, Javier Guerra Giraldez
- Re: modules, require, magic, Petite Abeille
- Re: modules, require, magic, Sam Roberts
- Re: modules, require, magic, Hisham
- Re: modules, require, magic, Luiz Henrique de Figueiredo
- Re: modules, require, magic, Pierre Chapuis
- Re: modules, require, magic, Josh Simmons
- Re: modules, require, magic, joao lobato
- Re: modules, require, magic, Luiz Henrique de Figueiredo