[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: __gc finalizer called at exit?
- From: nr@... (Norman Ramsey)
- Date: Tue, 11 Dec 2007 13:16:41 -0500 (EST)
I've scrutinized the reference manual and also done some web searching,
and nowhere do I find the answer to this question: if Lua exits
either by a call to os.exit or by a normal return from the main chunk,
does it guarantee to call the __gc finalizers for any live userdata objects?
I believe that it should, but I'm not about to rely on it without some
word from the Team :-)