lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
[FUN] pmain
From
: Egor Skriptunoff <egor.skriptunoff@
...
>
Date
: Sat, 17 Aug 2019 11:26:52 +0300
[FUN] here means both "fun" and "function" :-)
function segfault()
for k = 1, 1/0 do
x = debug.getinfo(k) or x.func()
end
end
Actually, this code invokes pmain()
https://www.lua.org/source/5.3/lua.c.html#pmain
Vanilla Lua crashes (why?)
LuaJIT indeed invokes "nested interpreter" (press Ctrl-D to return back to "parent interpreter")
Follow-Ups
:
Re: [FUN] pmain
,
v
Re: [FUN] pmain
,
Sean Conner
Prev by Date:
Re: Question about table syntax
Next by Date:
Re: [FUN] pmain
Previous by thread:
Re: Question about table syntax
Next by thread:
Re: [FUN] pmain
Index(es):
Date
Thread