lua-users home
lua-l archive

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


Hello,

In Lua 5.1, is there any advantages/differences in using table.insert() vs using the new length operator directly?

Pre 5.1:

table.insert( aTable, "aValue" )

5.1:

aTable[ #aTable + 1 ] = aValue

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/