lua-users home
lua-l archive

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


I know that one of the main features of Lua is that it has a single variable type for numbers. There has been a lot written about the use of doubles as replacements for ints, and also about why doubles are not appropriate for many platforms (PS2, PC Games, etc).

I also know that you can change this type through the configuration (i use floats on the PC and ints on pocket PC).

However, it would be really, really nice to have a floating point type and an int type. I say this because much C code is written using bit flags. the float format can represent only about 16 sequential bit flags. while most C code (that I write anyway) uses up to 32 flags.

So the question I'm asking is, how hard would it be to make a seperate "int" data type?