lua-users home
lua-l archive

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


David Manura wrote:
 local x2 = myvar*myvar
 local y = x2*x2 / (1 + x2)
 -- Lua itself couldn't do this factorization due to
 -- the possibility not only of overflow but also
 -- metamethods, except in special cases if detected
 -- by code analysis

and another:

 table.insert(table1.table2, 1)

 local t = table1.table2; t[#t+1] = 0

At least these'll become moot points with jit 2.x ;).

- Alex