[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: object-model: Return by value, reference or pointer? (or something else?)

From: Branko Čibej <brane_at_xbc.nu>
Date: Thu, 14 Oct 2010 12:24:54 +0200

 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
Received on 2010-10-14 12:25:37 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.