[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Calling a function on exit
- From: diego@...
- Date: Thu, 10 Jun 2004 16:49:34 -0400 (EDT)
> I believe that in the new Luasocket Diego has added WSACleanup(),
> however it is up to the user to call it. I use a gc method on
> the socket namespace to make sure it gets called.
Yes. Not sure how to do it nicely, though. It depends on the ongoing
packaging discussion. Right now I have a __unload method in the
namespace that can be called whenever the user wants to, but I am not
calling it automatically.