[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.3.0 (work1) now available
- From: Joshua Jensen <josh.jjensen@...>
- Date: Sat, 06 Jul 2013 09:35:49 -0600
----- Original Message -----
From: Luiz Henrique de Figueiredo
Date: 7/5/2013 8:22 PM
I played around with this a bit. The only thing I found that appears to
be missing is the ability to determine the actual type of the number.
The main change in Lua 5.3.0 is support for integers.
a = 5
ttype(a) == 'number'
b = 5.0
ttype(b) == 'number
From the C API, it appears that lua_isinteger() will work for the 'a' case.
It would be nice if there was a method to do so in Lua itself. One use
case is for serializing integer values to disk in text form properly.