lua-users home
lua-l archive

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


2011/3/30 Jerome Vuarand <jerome.vuarand@gmail.com>:
> Did you try to define lua_Number as a complex number type ?

H Jerome,

this approach can actually work and it does correspond roughly to what
is implemented by the LNUL patch for complex number. This solution
have some disadvatages. A minor one is that it does break
compatibility with standard Lua and a major one: it does double the
memory require to store a single TValue. This can lead to much more
important memory usage whether or not complex number are used.

-- 
Francesco