lua-users home
lua-l archive

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


On Wed, Apr 13, 2011 at 16:25, Henning Diedrich <hd2010@eonblast.com> wrote:
>     ----------------------------------------------------------------------------o-
>     x=[1..100] elements in t[i] = 'abc' .. i
>     +: '[' .. table.concat(t) .. ']'
>     x: string.format('[%s]', table.concat(t))
>     ----------------------------------------------------------------------------o-

The first example has only one global+table lookup for two in the
second. Or perhaps you cached them in locals but did not display it?

-- Pierre-Yves