lua-l archive
[
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
: Fri, 14 Mar 2014 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