lua-users home
lua-l archive
__gc metamethod and error()
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
__gc metamethod and error()
From
: "temp 213 qwe" <temp213@
...
>
Date
: 2019年1月02日 04:14:57 +0600
setmetatable ({}, {__gc = function() print(1) error("error")
print(2) end})
It looks like at the end, garbage collector also collects
something required by error() function first. So there is no
error message from the code above, lua 5.3.5.
Follow-Ups
:
Re: __gc metamethod and error()
,
Andrew Gierth
Prev by Date:
Lua scripts for testing
Next by Date:
Re: __gc metamethod and error()
Previous by thread:
Re: Lua scripts for testing
Next by thread:
Re: __gc metamethod and error()
Index(es):
Date
Thread
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル