On Thu, Apr 18, 2013 at 5:17 PM, Evan Gates <[email protected]> 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
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to