lua-users home
lua-l archive

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

> After seeing the huge discussion of #, I personally wouldn't be caught dead
> using it.

"t[#t + 1] = v"  is a pretty standard idiom and no doubt faster than
table insert.  Also I think that 5.2 encourages to use "for i = 1, #t
do" over "for i, v in ipairs(t) do".  At least it took some discussion
to keep ipairs in at all.