lua-users home
lua-l archive

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


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.