[zeromq-dev] question about czmq zctx_destroy
Pieter Hintjens
ph at imatix.com
Thu Apr 18 17:33:10 CEST 2013
On Thu, Apr 18, 2013 at 5:17 PM, Evan Gates <evan.gates at gmail.com> wrote:
> 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've added this language to CLASS, our style guide:
"A method may take ownership of an object instance and then act as a
destructor of the object instance at some later stage. In that case
the method SHALL use the same style as the destructor."
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.
-Pieter
More information about the zeromq-dev
mailing list