lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
[BUG]Wrong trace of goto
From
: actboy168 <actboy168@
...
>
Date
: Fri, 23 Oct 2020 11:13:27 +0800
For this code:
> debug.sethook(function(...) print(...) end, "l")
> if false then
> goto EXIT
> A = 1
> end
> ::EXIT::
The output is:
line 3
line 6
I think it should be
line 2
line 6
I got the same result in both lua5.4.1 and lua5.3.6.
-- actboy168
Follow-Ups
:
Re: [BUG]Wrong trace of goto
,
Luiz Henrique de Figueiredo
Prev by Date:
Why does not replace the return value type(i.e. GCobject*) of luaC_newobj() function with the type of union GCunion* to avoid the explicit cast(i.e. gco2t, gco2p, gco2u and etc)?
Next by Date:
Re: Is there any circumstance that needs to invoke lua_newstate () to create two or more Lua states in a single C\C++ process?
Previous by thread:
Re: Why does not replace the return value type(i.e. GCobject*) of luaC_newobj() function with the type of union GCunion* to avoid the explicit cast(i.e. gco2t, gco2p, gco2u and etc)?
Next by thread:
Re: [BUG]Wrong trace of goto
Index(es):
Date
Thread