From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123075 invoked by alias); 8 Apr 2018 21:32:46 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 123065 invoked by uid 89); 8 Apr 2018 21:32:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gateway33.websitewelcome.com Received: from gateway33.websitewelcome.com (HELO gateway33.websitewelcome.com) (192.185.146.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 08 Apr 2018 21:32:42 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway33.websitewelcome.com (Postfix) with ESMTP id EB7E919F6602 for ; Sun, 8 Apr 2018 16:32:40 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 5HvUfI2v8y2aL5HvUfgp7q; Sun, 08 Apr 2018 16:32:40 -0500 Received: from 75-166-37-45.hlrn.qwest.net ([75.166.37.45]:33148 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1f5HvU-003Awj-De; Sun, 08 Apr 2018 16:32:40 -0500 From: Tom Tromey To: Pedro Alves Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [RFA 00/12] (somewhat) clean up struct value ownership References: <20180405211507.6103-1-tom@tromey.com> <97bbc817-5825-9abb-54d4-df041a61700f@redhat.com> Date: Sun, 08 Apr 2018 21:32:00 -0000 In-Reply-To: <97bbc817-5825-9abb-54d4-df041a61700f@redhat.com> (Pedro Alves's message of "Fri, 6 Apr 2018 20:33:10 +0100") Message-ID: <87po39o03t.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BWhitelist: no X-Source-L: No X-Exim-ID: 1f5HvU-003Awj-De X-Source-Sender: 75-166-37-45.hlrn.qwest.net (bapiya) [75.166.37.45]:33148 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-SW-Source: 2018-04/txt/msg00134.txt.bz2 Pedro> As I'm reading the series, I'm also wishing for making some of the Pedro> value-related free-functions methods of value instead, so that Pedro> instead of having to write ref_ptr::get() calls like in: I did some of this today, but it's hard to know where to stop. I was thinking maybe just the things requiring direct access to the members; and then anything else could remain a free function. I'm not sure though and there might be exceptions to that. Tom