lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: discrepancy between luaL_tolstring and lua_tolstring
From
: Viacheslav Usov <via.usov@
...
>
Date
: Mon, 4 Jul 2016 12:41:03 +0200
On Mon, Jul 4, 2016 at 4:19 AM, 书呆彭, Peng Yi
<
nerditation@outlook.com
>
wrote:
> the fact that `lua_tolstring` also accept a number value is just a side effect of the way Lua coerce number and string.
Fair enough. Then the question is, why is coercion of Boolean into string is not part of the language?
Unless I am missing something, that seems rather arbitrary to me.
Cheers,
V.
Follow-Ups
:
Re: discrepancy between luaL_tolstring and lua_tolstring
,
Charles Heywood
Re: discrepancy between luaL_tolstring and lua_tolstring
,
书呆彭, Peng Yi
References
:
discrepancy between luaL_tolstring and lua_tolstring
,
Viacheslav Usov
Re: discrepancy between luaL_tolstring and lua_tolstring
,
书呆彭, Peng Yi
Prev by Date:
Re: New array type? (was: 'table' as fallback for tables)
Next by Date:
Re: How to get the 2-complenent of a negative number in Lua 5.2?
Previous by thread:
Re: discrepancy between luaL_tolstring and lua_tolstring
Next by thread:
Re: discrepancy between luaL_tolstring and lua_tolstring
Index(es):
Date
Thread