[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <email@example.com>:
> Did you try to define lua_Number as a complex number type ?
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.