[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: setfenv/getfenv
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 12 Jan 2010 14:00:20 -0200
> That on the other side looks horribly un-lua-like to me (and unefficient
> if the code in question is long enough), also this wont work for loadfile().
You could use the plain load function with a suitable function that does
the wrapping by sending "in ... do " at the beginning and " end" at the
end, with no need for concatenation.