[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: integer Lua 4.0
- From: Reuben Thomas <rrt1001@...>
- Date: Thu, 9 Nov 2000 18:33:55 +0000 (GMT)
> #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.