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
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
