lua-users home
lua-l archive

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


On Sat, Jan 9, 2010 at 10:22 AM, David Manura <dm.lua@math2.org> wrote:
> A couple exceptions: math.rad, math.deg, and maybe math.max.

You can do math.max in Lua, but it's more efficient to handle varargs in C.

I suppose table.pack() is there for neatness, more than anything else.

Note that unpack now lives in table, which leads to:

local unpack = unpack or table.unpack

at the top of many Lua files