lua-users home
lua-l archive

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



I've been thinkimg of a similar situation with the 64-bit 'long long' values, and will probably implement them as userdata, sooner or later. Does anyone already have such a library available?!?

-ak


Andrew Teirney kirjoittaa keskiviikkona, 7. toukokuuta 2003, kello 12:28:

Hi there,

This email relates to adding to the base types of the Lua language, the
target platform that i am soon to get lua working on is the m32c/80, a
16-bit microntroller. What i would like to do is have the ability to handle several integral types of various sizes, 16-bit, 32-bit and then floating point. 16-bit is the ideal size for most operations due to speed, but when using signed numbers 32768 is rather limiting, thats when the 32-bit would be used. Does any one have an idea on how this could be implemented, i would
much rather it be part of the base language rather than a user type or
whatever, i have considered adding another LUA_LONG_NUMBER type but i am unaware of the implication to the compiler and so forth that there may be, i am quite happy to write code and so forth, just unsure of how big a job it
would be.

Cheers,

    Andrew Teirney