[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua value type
- From: Norman Ramsey <nr@...>
- Date: Thu, 02 Jul 1998 10:01:04 -0400
> If all this was done it would be very easy to change Lua between float and
> double, and easier to change to int.
Indeed. I got an unpleasant surprise the other day when I tried to
store a time_t in a Lua number. I wound up putting it in a string,
which was OK because I was writing C code, but it would have been
tough to handle in Lua code alone.
Has anybody written a library to do arbitrary-precision arithmetic on
strings? If not, adapting Dave Hanson's code at
http://www.cs.princeton.edu/software/cii might not be hard...