subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <>
Subject Re: object-model: Return by value, reference or pointer? (or something else?)
Date Thu, 14 Oct 2010 10:24:54 GMT
 On 13.10.2010 22:05, Steinar Bang wrote:
> I'm divided on whether I would move the delete of the RefCounter object
> into the dec_ref method, or leave it where it is.  On one hand it feels
> like good encapsulation to put it together with the dec_ref, on the
> other hand, I've always been wary of "delete this;"...

Why? Just because it feels strange to you? Same reason why you'd rather
copy-past lots of classes instead of instantiate templates? ;)

Kidding, but a serious question nevertheless.

-- Brane

View raw message