Re: [ANN] Lua 5.2.1 (work1) now available
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [ANN] Lua 5.2.1 (work1) now available
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2012年3月23日 13:05:55 -0300
> > Lua optimises expressions of that form into a single concatenate
> > operation.
>
> As well as
> for k = 1, 100 do s = s...k end
> ?
No, of course not. But it's pretty easy to write an implementation of ropes
using tables and the appropriate concat and tostring metamethods.