lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
About macro `isvalid` in Lua5.4(work2)
From
: 重归混沌 <findstrx@
...
>
Date
: Fri, 31 Aug 2018 09:30:48 +0800
When I read the Lua5.4(work2) source code, change of `isvalid`(
https://github.com/lua/lua/blob/b95e46621873cfb460e1d11dcd153914d5d69f86/lapi.c#L42
) confused me.
In my opinion, `ttisnil(&G(L)->nilvalue)` is always true, `(!ttisnil(o) || o != &G(L)->nilvalue)
` can be simplied to `(o != &(G)->nilvalue)`.
Of course Roberto is always right. But I can't find my mistake.
It confused me for sereval days.
Follow-Ups
:
Re: About macro `isvalid` in Lua5.4(work2)
,
云风 Cloud Wu
Prev by Date:
re: noob LPEG question
Next by Date:
Re: About macro `isvalid` in Lua5.4(work2)
Previous by thread:
Re: no support for Cf in lpeg "re" module?
Next by thread:
Re: About macro `isvalid` in Lua5.4(work2)
Index(es):
Date
Thread