[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Using numbers as float
- From: roberto@... (Roberto Ierusalimschy)
- Date: Fri, 30 Jun 2006 10:54:01 -0300
> [BTW: Whatever Lua 5.2 or 6.0 may look like, but may I suggest
> redesigning or at least renaming the auto-coercive API calls?]
Only lua_tostring does auto-coercion. lua_tonumber (and lua_isnumber)
does not modify the original object (at the cost of performing the
conversion at every new call).
-- Roberto