lua-users home
lua-l archive

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


> 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.