lua-users home
lua-l archive

Re: Small question about os.exit and __gc

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I also find it pretty odd that os.exit() doesn't close the state by default.
You can always do
	do
		local exit=os.exit
		os.exit=function(code) exit(code,true) end
	end

AltStyle によって変換されたページ (->オリジナル) /