Re: set_weak_flag() for objects?

"Stephen R. van den Berg" <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
Arne Goedeke wrote:
>Maybe in that case a different API makes more sence, for instance by
>always passing this and any extra arguments. This would at least deter

In this case it's not that tragic.
The objects are "connected" to the network sessions.
You either terminate them manually, in which case I clear out the id
variable just in case, so it autodestructs, or the object will autoterminate
when the connection closes.

Just dropping all references to the object won't kill it, the callbacks will
still be called.
Unless someone educates me otherwise, I think this is just fine, because
the typical use cases operate on read and close callbacks only, the object
itself is not interesting.
-- 
Stephen.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.