lua-users home
lua-l archive

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

The expression t[#t+1] does become clumsy when
t is replaced by LongVerboseVariableName. However,
I hope I am not spoiling the fun of syntactic
neology if I point out that Lua is really strong
on controlling scope and that using local variables
is to be recommended. So what is wrong with

local t, x = LongVerboseVariableName, pushme_in_please
t[#t+1] = x
end -- do

Gavin Wraith (
Home page: