Re: Help: Has someone knows how to replace lua_Number with a C++	class?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Help: Has someone knows how to replace lua_Number with a C++	class?
 
- From: Xavier Wang <weasley.wx@...>
 
- Date: 2012年5月21日 20:08:46 +0800
 
2012年5月21日 Erik Hougaard <erik@hougaard.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
>> support?
>>
> 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
OMG.
regards,
Xavier Wang.