220 37369 <1576846.pGoWqklWjJ@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: `offsetof` in a macro-less, modular world
Date: Fri, 16 Mar 2018 14:04:08 -0700
Lines: 23
Approved: news@gmane.org
Message-ID: <1576846.pGoWqklWjJ@tjmaciei-mobl1>
References: <c5f5ccc4-3267-442d-8cb2-de1ae103a38e@isocpp.org> <CAHSYqdbvMA-gv+eP1iu53J6pnLTmr9KjR4_0XJBnEsy5qth=+A@mail.gmail.com> <dcd5b3da-0018-4eca-b7a6-b94e950de2de@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1521234131 28578 195.159.176.226 (16 Mar 2018 21:02:11 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 16 Mar 2018 21:02:11 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBTHCWDKQKGQEDMFJFDQ@isocpp.org Fri Mar 16 22:02:07 2018
Return-path: <std-proposals+bncBCB4TK757YBRBTHCWDKQKGQEDMFJFDQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qt0-f199.google.com ([209.85.216.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBTHCWDKQKGQEDMFJFDQ@isocpp.org>)
	id 1ewwUI-0007JZ-Ru
	for gclcip-std-proposals@m.gmane.org; Fri, 16 Mar 2018 22:02:07 +0100
Original-Received: by mail-qt0-f199.google.com with SMTP id y9sf7536307qti.3
        for <gclcip-std-proposals@m.gmane.org>; Fri, 16 Mar 2018 14:04:14 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1521234253; cv=pass;
        d=google.com; s=arc-20160816;
        b=bB/4TpjIjje0H3kvj4bUT81bmA1unqfLbVWpkC0fvmg6kSf6j9f35JVpIXkxXawcoq
         3b97cHXsZuPB94Hefq9GUgjWxp3olDBHngtU14UolXDa1tpCoWsbcG4Ek+i5Fkd3X/iB
         EG/7/lt2Fszd1PjorPlRIQAsmI+qriOS7erJ/c17oBsBrSdLZmrYM6tRF6GA85OkJQgM
         WM7/Y55qOEqjh5qWNlWI065khlJrNnojFj7E7t8hMVARr2Az2KU4Q3+cvt1uFmVkqG96
         dW6qNyU3YpK2K/IJlnsip2Onth5ICXw0BQkqt9W9gYCuWTQ7SFdxjGDE3WlEU6WQYHpZ
         h6yA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=QGB9CFjq5drSOYEnmbCYEHaC8byy7U6m+pmImfVSyDU=;
        b=YYmfovCr6dl2PEovn4XOu6eElLWBVKk8n73TBF9j3WMMVvWuGKBIE2/S7vyI9WFSUU
         QfVnnrZCE6m5sGfDA3kUOZeNP3LqErvXVG50QvgpbdyuW5X0I8Tjmxt0q26NuuvuZ+QW
         glqAX8QBRsL2/1qyfU8vjxHxDRO2X4hTkSm42eeKvf1VXcCMYP0SAm693UyWJP2Lmuj+
         c/IkgaIz7ZSby3x+JXiKM6NsZ1HfcqL8tIW6s54HnfVnBx+Hr9XVZG25uuqvqXA5X5pN
         v04a8EGW278YLLwHew04GsE3nUlY4pXL077Vr5mtYhJCTE0zDvyxLofXvgzs+3Rj6I79
         EJug==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 209.222.10.136 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=QGB9CFjq5drSOYEnmbCYEHaC8byy7U6m+pmImfVSyDU=;
        b=BKBYlQudHJkAPVSxgxhRjfDQgueLGvE+/k5EYytxJzHhOfqnCHHg9INlZcCuLLeyj6
         cM1GHSRd93UHH/Zax6nc1f00TDWsOtb0RWbg5CR7a/xltgZbAfokZEOHSELKnuf1UeYv
         GHCsm95hQjX5FzvslqujGfVUIkxY5+SYHpneyGzkHCIddnOEyjpN5ayvrsFjiirw8duO
         DbeaGx3NZnx0BWmxtslnrTwNkixEQ2cGXFKQ+FxsFn9jVzlKl+mMA66fjDAFLOLcpVO4
         QoP22Ob2OJN9Z+jkZSRbFO8KRAdBriOtOpcG0FK3uHAxZVomwnqtZUgDfIWiWwXijynv
         pO8A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=QGB9CFjq5drSOYEnmbCYEHaC8byy7U6m+pmImfVSyDU=;
        b=m2e1jJMWNkHO6HvoMB9Hw+kybHu8C27mzRxZlL/u+M3ecC2GNcWxAlU0yNoO0gEJCm
         AaoFdRVVDIddIvQ6sdeD2vCA41w0MqA/FUj0VXa0dW+1pPDfegAoz282yymiMn8gKHr8
         pd+G8ngFHa/qxvbk/96rsh2hU7TNG1WRdVuTdUqse6pYMmwUo33OtoWb+wh6EmWJnAxb
         vs4UFwJmGHkbp8lfx3S7m6yQ++XUjFqA7X4jyXoeETHYrNqXYEWv/VkLCjvvUQjzLiBZ
         aFIvxeiIh3PB30iIJc0al0t9bhpqbY5Dt3PSELeypV6Mr61coX8H+vJsmEgv6wy8H/IS
         Sy7g==
X-Gm-Message-State: AElRT7HK2WV5G5rN9JvCRjBdlkRQeUkvDm4Db0SwplnWHvhNTSOBcSwO
	1FQ5N1AXCTlKHlm55xvb/AkoEQ==
X-Google-Smtp-Source: AG47ELsONWGQ7Wok9yjOiqOsf5ZpmqqRNHDFKXoSCr+fvM/DYhO1Lf3nLV0nrZspAqyMY7WeT2d2zg==
X-Received: by 10.55.34.75 with SMTP id i72mr2226695qki.50.1521234253520;
        Fri, 16 Mar 2018 14:04:13 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.55.162.20 with SMTP id l20ls876979qke.13.gmail; Fri, 16 Mar
 2018 14:04:12 -0700 (PDT)
X-Received: by 10.55.73.76 with SMTP id w73mr4688342qka.317.1521234252342;
        Fri, 16 Mar 2018 14:04:12 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1521234252; cv=none;
        d=google.com; s=arc-20160816;
        b=vsRC9S09zp/L6z02bw/6Z4Cn+30Vd5xmM87chQMBEQIwI5ceHLwLXnIrSAK761PgUj
         cEI1/nCL0N6PWO29RQTHB5eLbdV8KSFAmkn+4L5m85w9Ql3pKEI6xKZvVnh5VzctIJmW
         KXhUXoLBeKXD4amP94OQx5oBQcPnsVKcGHbYTN3UXVGLmxusBcxE6o0G7v+VgwrqEh/I
         gzm2w/5wDtMrSbe/VPsrfOhEJ0f8hn7ek9S7RTzDjLkFxlUOF1/VwrNdC+rTiRJgVnH+
         wyD+F4eDUx+H6pov9kA8LUu/nZzBGSEYz86QVzUEVu9pPwbgdfQThxC85udmRsMIpr+u
         svNg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=YrmT7aSS1pLNs3N7SXeosqlwZxYSqreZ+2sFMFk/eOs=;
        b=h9YbMv/usAAeQ1oaLbpn+vz237CY29sOGULCmRvtZSM42N0jPxeAtcrFA8yNlrlFBP
         n64pmcWBOVoOzsCGWw8M53kNyEyCfCMsqRaoS/sUBXZXMaG9PDHalaKXfYAl/JRO1tP7
         4R1Ojdz73gHq4RToy4PzEcJ8+v0xLWJ/n2Sbp2Mp7wgMTKFtkHHbVxIaFQTGen2bbtpC
         ue7p/NHBvzog4s9WA9Wie9/InoifF9FyVpX5RP2q6PuAH32JpduiXqXRmVKWfbGBKdRj
         9Vrt6VQ7ke145AZOzTEuYRAmbxnymUnmlUT7jXZOutt7IJgFRdRXD7gN/O4/yEN3EK0S
         st3Q==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 209.222.10.136 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from smtp.macieira.info (arvernien.macieira.info. [209.222.10.136])
        by mx.google.com with ESMTPS id r13si5342106qtr.418.2018.03.16.14.04.12
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 16 Mar 2018 14:04:12 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 209.222.10.136 as permitted sender) client-ip=209.222.10.136;
Original-Received: from tjmaciei-mobl1.localnet (unknown [134.134.139.76])
	by smtp.macieira.info (Postfix) with ESMTPSA id 36AD5A774
	for <std-proposals@isocpp.org>; Fri, 16 Mar 2018 14:04:11 -0700 (PDT)
In-Reply-To: <dcd5b3da-0018-4eca-b7a6-b94e950de2de@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 209.222.10.136 as permitted sender) smtp.mailfrom=thiago@macieira.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:37369
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/37369>

On Friday, 16 March 2018 11:56:29 PDT Myriachan wrote:
> I really like Thiago's proposal regarding data member pointers, but it has
> a major problem: it's an ABI break.  Some proposed constructions would
> allow data member pointers with a negative offset (pointing to the
> containing class's members), and both the Microsoft and Itanium ABIs encode
> null member pointers as -1.

Not really. Negative offsets are already possible in some pathological 
pointer-to-members (don't ask me which ones). The ABI has to have a way to 
represent them in a way that is different from a null pointer.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center



-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/1576846.pGoWqklWjJ%40tjmaciei-mobl1.

.
