lua-users home
lua-l archive

Re: [ANN] Lua 5.2.1 (work1) now available

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


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

AltStyle によって変換されたページ (->オリジナル) /