lua-users home
lua-l archive
Small question about os.exit and __gc
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Small question about os.exit and __gc
From
: Dio Darkclainer <darkclainer@
...
>
Date
: 2014年3月14日 15:48:40 +0400
Hi all!
In stand-alone lua interpreter:
a = {__gc = function() print'exit' end}
setmetatable(a,a)
os.exit()
-> nothing to print.
But if i exit with combination <Ctrl+d> all Ok.
What's the problem?
Thanks!
Follow-Ups
:
Re: Small question about os.exit and __gc
,
Luiz Henrique de Figueiredo
Re: Small question about os.exit and __gc
,
Rob Kendrick
Prev by Date:
Re: C upvalue cleanup not being called
Next by Date:
Re: Small question about os.exit and __gc
Previous by thread:
Re: Looking for a table pretty printer
Next by thread:
Re: Small question about os.exit and __gc
Index(es):
Date
Thread
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル