[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua language extension for complex number and vector values
- From: Francesco Abbate <francesco.bbt@...>
- Date: Wed, 30 Mar 2011 20:49:10 +0200
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