Re: setfenv/getfenv
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: setfenv/getfenv
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2010年1月12日 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.