[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Help: Has someone knows how to replace lua_Number with a C++ class?
- From: Xavier Wang <weasley.wx@...>
- Date: Mon, 21 May 2012 20:08:46 +0800
2012/5/21 Erik Hougaard <email@example.com>:
> On 21-05-2012 13:57, Xavier Wang wrote:
>> I just have a idea that replace lua_Number as a GMP number or MAPM
>> number, is that possible? I mean, A lua with native big number
> I did it once with a C struct, worked fine, so that is certainly possible.
C struct is easy, but the problem is, most big number library need
init and free, but no luck in Lua source :-(
using C++ class is worse: class with operator= in union can not work T-T