220 30249 <CACGiwhG5mz25RMcPR10YR-D+HcSThhhfE6kJORXDf3WoR64qPQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: "D. B." <db0451@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: P0298: A byte type definition: with undefined
 pointer arithmetic?
Date: Wed, 4 Jan 2017 20:33:25 +0000
Lines: 53
Approved: news@gmane.org
Message-ID: <CACGiwhG5mz25RMcPR10YR-D+HcSThhhfE6kJORXDf3WoR64qPQ@mail.gmail.com>
References: <e21a1901-1ed5-5795-6244-dd70c4d08adf@f2.dion.ne.jp>
 <CACGiwhER_fU=bVY0nob5Tap9s=APgmeFS6sx6HQfnoPEKJjDVg@mail.gmail.com> <db74f34b-b0ab-46cb-b94a-eeb96ef10c2d@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11443f0c5b0e6305454ab2c3
X-Trace: blaine.gmane.org 1483562014 20864 195.159.176.226 (4 Jan 2017 20:33:34 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 4 Jan 2017 20:33:34 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCWNZ4ECS4GBBFVYWXBQKGQEBVRKGOQ@isocpp.org Wed Jan 04 21:33:29 2017
Return-path: <std-proposals+bncBCWNZ4ECS4GBBFVYWXBQKGQEBVRKGOQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wj0-f200.google.com ([209.85.210.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCWNZ4ECS4GBBFVYWXBQKGQEBVRKGOQ@isocpp.org>)
	id 1cOsFO-000464-SB
	for gclcip-std-proposals@m.gmane.org; Wed, 04 Jan 2017 21:33:23 +0100
Original-Received: by mail-wj0-f200.google.com with SMTP id xr1sf117600166wjb.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 04 Jan 2017 12:33:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :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=29L90o9rALX0MjOLvw15pcFd6r0axRpIkhtEdqOZw60=;
        b=YbOE2E8wS4JQkTCzxsegnEN6SpUUDpTT7wIr2JSovaNOp3RvV/BrsB+aVv/IXBArMV
         fzxwtFHxgpH7lf/54O1Eo/Jn551xmtoyHmMMQ7NJG/nwmCKIlc0nYuhUHIsqOc1/LsEp
         cu5pZTKEEjNrYiJGs3UsVkEJTJRCI5Y3HKNwafUciriUmn/GY2YuWUQvdmMfcP451Zlk
         XFcy5cwdyvrTTThW3Ol1Rv9WCT5b+WG6YPMPhJQU4hEBlkyVl8nztt/InzToFnqlluls
         DaLpeJib0nK3j+PivCjcAIlH+5yRvdIVpJ4Vm53yNo3lr4BxDvmMCokikF4WS9xSC2/I
         UzxQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to: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=29L90o9rALX0MjOLvw15pcFd6r0axRpIkhtEdqOZw60=;
        b=ufteEwK1s4zAWyDnmW2ham1a1eSlLkpdH1nvBf1tHUW0lNCeL962/JEiFECMM+Cdqv
         4jSxUogxcTBdXEpCKst6kv/ththcnaTOEw3tg/E185JYi95R31il27q0ndeDPHGXveD/
         ie4OURE7oHAmFB/A5nKH7IeKnphalYsgJ6/rQDkPQgYGCHwDLjIrxctt+Sf3m+buUicF
         OFYxVdzypkLxRd0sCccVNttorv8QKkuneamUJAk9TMN0TTjjJf5ngSj4LxknuU8JWA1P
         XIWSRsz9SFa+xR/uh+QITggHVLq/MC5SdmbZplGMG+1YKwa991hJfffvWGWcGChiY6+k
         bAGg==
X-Gm-Message-State: AIkVDXIQf8NN+UewfbQ3Rtl5wv8Fi+Ocg8CzmzWJ5zIsFrGB0jty57f5f3icyo5ICZDeNQ==
X-Received: by 10.28.7.17 with SMTP id 17mr1613997wmh.8.1483562007322;
        Wed, 04 Jan 2017 12:33:27 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.26.13 with SMTP id a13ls6234585wma.17.gmail; Wed, 04 Jan
 2017 12:33:26 -0800 (PST)
X-Received: by 10.194.57.206 with SMTP id k14mr21135557wjq.30.1483562006270;
        Wed, 04 Jan 2017 12:33:26 -0800 (PST)
Original-Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com. [2a00:1450:400c:c09::22b])
        by mx.google.com with ESMTPS id 19si75609939wmt.10.2017.01.04.12.33.26
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 04 Jan 2017 12:33:26 -0800 (PST)
Received-SPF: pass (google.com: domain of db0451@gmail.com designates 2a00:1450:400c:c09::22b as permitted sender) client-ip=2a00:1450:400c:c09::22b;
Original-Received: by mail-wm0-x22b.google.com with SMTP id c85so231652553wmi.1
        for <std-proposals@isocpp.org>; Wed, 04 Jan 2017 12:33:26 -0800 (PST)
X-Received: by 10.28.6.203 with SMTP id 194mr55350362wmg.16.1483562005760;
 Wed, 04 Jan 2017 12:33:25 -0800 (PST)
Original-Received: by 10.28.144.66 with HTTP; Wed, 4 Jan 2017 12:33:25 -0800 (PST)
In-Reply-To: <db74f34b-b0ab-46cb-b94a-eeb96ef10c2d@isocpp.org>
X-Original-Sender: db0451@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of db0451@gmail.com
 designates 2a00:1450:400c:c09::22b as permitted sender) smtp.mailfrom=db0451@gmail.com;
       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <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:30249
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/30249>

--001a11443f0c5b0e6305454ab2c3
Content-Type: text/plain; charset=UTF-8

Indeed, that's pretty much what I would like... not for selfish reasons
anymore, since the design where I thought I needed that had *worse* UB that
I had to resolve ;-) but simply because it makes sense, makes the
"sequence" concept at all useful, and means that the so-called special
properties of char* pointers can actually exist.

But when I (thought I) needed this before, it was a fairly simple situation
where an object would have a method invoked on it, taking a pointer to one
of its members, and was then supposed to calculate the offset of that
member within itself and do stuff with it. That hardly seems unreasonable.

-- 
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/CACGiwhG5mz25RMcPR10YR-D%2BHcSThhhfE6kJORXDf3WoR64qPQ%40mail.gmail.com.

--001a11443f0c5b0e6305454ab2c3
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Indeed, that&#39;s pretty much what I would like... n=
ot for selfish reasons anymore, since the design where I thought I needed t=
hat had <i>worse</i> UB that I had to resolve ;-) but simply because it mak=
es sense, makes the &quot;sequence&quot; concept at all useful, and means t=
hat the so-called special properties of char* pointers can actually exist.<=
br><br></div>But when I (thought I) needed this before, it was a fairly sim=
ple situation where an object would have a method invoked on it, taking a p=
ointer to one of its members, and was then supposed to calculate the offset=
 of that member within itself and do stuff with it. That hardly seems unrea=
sonable.<br></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CACGiwhG5mz25RMcPR10YR-D%2BHcSThhhfE6=
kJORXDf3WoR64qPQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CACGiwhG5mz25RM=
cPR10YR-D%2BHcSThhhfE6kJORXDf3WoR64qPQ%40mail.gmail.com</a>.<br />

--001a11443f0c5b0e6305454ab2c3--

.
