Re: Using numbers as float
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Using numbers as float
- From: roberto@... (Roberto Ierusalimschy)
- Date: 2006年6月30日 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