lua-users home
lua-l archive

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


> #define LUA_NUM_TYPE_IS_INTEGRAL
> //#define LUA_NUM_TYPE_IS_FLOAT
> //#define LUA_NUM_TYPE_IS_DOUBLE

This is a neat scheme, but the current one (with my addition) is more
flexible, as you can choose whether you want int (for speed), long or long
long (for precision), float (for space and convenience) or even short (for a
really small implementation). It'd be silly to cater to all of these
directly; my scheme is just a compromise because the C preprocessor doesn't
allow string comparisons in #if lines.

-- 
http://sc3d.org/rrt/ | Si hoc legere scis nimium eruditionis habes.