From dev-return-7178-daniel=haxx.se@subversion.apache.org Thu Oct 14 12:25:37 2010 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on giant.haxx.se X-Spam-Level: X-Spam-Status: No, score=-4.5 required=3.0 tests=BAYES_00,DS_FRIEND, T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with SMTP id o9EAPaTf025672 for ; Thu, 14 Oct 2010 12:25:37 +0200 Received: (qmail 59353 invoked by uid 500); 14 Oct 2010 10:25:27 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 59345 invoked by uid 99); 14 Oct 2010 10:25:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 10:25:27 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.214.43] (HELO mail-bw0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 10:25:18 +0000 Received: by bwz20 with SMTP id 20so323041bwz.16 for ; Thu, 14 Oct 2010 03:24:57 -0700 (PDT) Received: by 10.204.59.9 with SMTP id j9mr8552002bkh.150.1287051897048; Thu, 14 Oct 2010 03:24:57 -0700 (PDT) Received: from zulu.local (cpe-90-157-154-134.dynamic.amis.net [90.157.154.134]) by mx.google.com with ESMTPS id 4sm7494309bki.13.2010.10.14.03.24.55 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Oct 2010 03:24:55 -0700 (PDT) Message-ID: <4CB6DA76.900@xbc.nu> Date: Thu, 14 Oct 2010 12:24:54 +0200 From: =?UTF-8?B?QnJhbmtvIMSMaWJlag==?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: dev@subversion.apache.org Subject: Re: object-model: Return by value, reference or pointer? (or something else?) References: <87lj62qbn8.fsf@dod.no> <87wrpldh8y.fsf@dod.no> <87ocaxdfjb.fsf@dod.no> In-Reply-To: <87ocaxdfjb.fsf@dod.no> X-Enigmail-Version: 1.1.1 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAADBQTFRF IhsbCy0qZjoVOVRoeFxSAIKBzXQiAKaibYiewnk7nn9z0qCTgL3i87Ep6Kx/+tHBsrE+zgAAAjZJ REFUOMvF0jFoE1EYB/CzjWlqIzaTjqVIBifRRWyG0t5iUqlLyFpCeXBgKg5yq6A4degUDJjoUDpc 1Qt4Ux94B11SOLB0KGS4discpbkORTCn9/m9d3fvLhXnvuHu3f+Xx/veyyfZfLSdZHzgicSfeyw4 JISwdz8FT6M8lM8Ceg385Dlhs+cC9sQCDn0B78QCogzwN+sxfHGOIXBbRGkNAM4cZymGtgNsDPgz cByxon3EEm1TLmvAlghoHOO3CZSa+IQ/vF6JV8tgKOMow78gRgL2/+EIvATOUtB3SSdMg4GXgrbn uk0uLiGdoCHKbX4E+t1FUTqn1AtIdPJebssDQ64YANSQyyaQNyUOFs0ijMsMFnOPTahPLXKYowtY 08MfCP7vR7hRnc5zmPK7CDYYbHcbC7tHuyFA94U/1LYZaJpu/sxACHMwvwZljTLY0TbNk4x+zuEt yC3MfCM6uSIvfwur0itFL4FA2Yal8BzLfnYV4EIGwEPAk7o5zIcnvzHMEjwJrrhAKK7on6IrsfRJ 7A53BhaK+CL7fj6+q/sPeOvcDTtoZTxpUYsFeIknrOXep3p3l7Ua+8sZ5FPQKyKwWi+DfROTU7ny C1/9UhpeY7K287WJCzbsNPQm2S6Yk4PSCNhWM2r3nD0K9liYb6yPgCRJhSzPrxUK0yUBVk1VX0lj s7MzGZyp0wImMK/e8rHbz2soL+O+2r1dxfGsAmBcx0lNjS/RUhlUC7gRn1wGMdQ7Vw1/AReW/RN3 xFWdAAAAAElFTkSuQmCC Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [80.67.6.50]); Thu, 14 Oct 2010 12:25:37 +0200 (CEST) X-Friend: Friend 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