[zeromq-dev] question about czmq zctx_destroy
Evan Gates
evan.gates at gmail.com
Thu Apr 18 22:36:23 CEST 2013
See inline:
>> Out of curiosity, why don't calls that take ownership also nullify a
>> reference?
> It would be nicer if they did this but it didn't occur to me. :-)
> I don't like breaking APIs but this seems like a good improvement to
> the CZMQ API so if you want to make those changes, go for it.
Sounds like fun, I'll look into it.
> I think even if a method has taken ownership, it should still be
legitimate for the
> programmer to hold on to the reference till the end of the life cycle of
the object.
>
> Eg, zctx manages destruction of sockets, but we still hold a reference to
the socket.
IMO the difference is between giving control which normally happens when
you're done with an object (e.g. zmsg_push()), and creating a new object
that you will use presently (e.g. zsocket_new()).
My $0.02
-Evan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130418/ccf2f12d/attachment.htm>
More information about the zeromq-dev
mailing list