[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luaL_checkint and luaL_checkinteger
- From: Asko Kauppi <askok@...>
- Date: Tue, 4 Mar 2008 08:59:05 +0200
The LNUM patch has improved Lua integer API.
Alex Davies kirjoitti 3.3.2008 kello 22:16:
They also don't check that there's no fractional component either.
This is not an accident - checkint is the fastest way to get (and
check) an integer out of Lua. If your application requires
additional range and/or fractional checks, go for your life =).
----- Original Message ----- From: "Norman Ramsey"
It would be good if in Lua 5.2 it were documented that
luaL_checkint and luaL_checkinteger don't check for overflow.
It would be even better if they checked for overflow.