220 4823 <CANh-dX=va9uLSbvQc_TRmf8o5TDzQutmkxJDc64g7b=yKyN7sg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Jeffrey Yasskin <jyasskin@google.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Proposal: std::sequence
Date: Mon, 3 Jun 2013 09:49:03 -0700
Lines: 55
Approved: news@gmane.org
Message-ID: <CANh-dX=va9uLSbvQc_TRmf8o5TDzQutmkxJDc64g7b=yKyN7sg@mail.gmail.com>
References: <4551abbc-43aa-4520-a91a-f8eb25a90588@isocpp.org>
 <e915df62-4930-48ee-a8ac-64261c407234@isocpp.org> <2c8e6079-9c87-425a-93e2-39251df57cd8@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1370278165 22321 80.91.229.3 (3 Jun 2013 16:49:25 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 3 Jun 2013 16:49:25 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDDM34EO6QDRBFESWOGQKGQE4LPUMNQ@isocpp.org Mon Jun 03 18:49:26 2013
Return-path: <std-proposals+bncBDDM34EO6QDRBFESWOGQKGQE4LPUMNQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yh0-f70.google.com ([209.85.213.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDDM34EO6QDRBFESWOGQKGQE4LPUMNQ@isocpp.org>)
	id 1UjXwj-0000Hn-RF
	for gclcip-std-proposals@m.gmane.org; Mon, 03 Jun 2013 18:49:26 +0200
Original-Received: by mail-yh0-f70.google.com with SMTP id c41sf1749401yho.1
        for <gclcip-std-proposals@m.gmane.org>; Mon, 03 Jun 2013 09:49:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=x-beenthere: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-google-group-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=LUZ/u2TFP0YQafupbPoJfpYPsxCYgvQ83b4e/b5QPcU=;
        b=C991NajilNm/nKUs+XdpGGRjAEf1oOozzErGMUWVA2uRSDfYD7a7e0MPDAj1Zvdn1l
         07fIrATc2YL0C51UBiHWjLDsVoVg8Sb/rcaFPvtkhEyuCqxQu+XreW1d1OEipJPL4z8+
         UbdkUjG9hMmGUDki2qQgqaqlKVcMjjyOhyby2XdGTAadu5DgO33kd2VWPyHUW8Qgg4eQ
         zwImI6rsx+EpjBKSKv0bTqCu9tdfM2dCD0A2oFshUN8BHoGBeiSO/W28tNlsggokiFnG
         OjjUVH9JINAeO76YWI3saD8v4iys49eZ2E+QmfWgg0Llmyu4bN3IvvEp9VAJsylnomfc
         8TLw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=x-beenthere:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-gm-message-state:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-google-group-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=LUZ/u2TFP0YQafupbPoJfpYPsxCYgvQ83b4e/b5QPcU=;
        b=g6gfFM5kT1Ix3jTVNJsEKy8swqbXha1D31WX6eZ64DR5+p0yQBynUuwpRDZjRd0pzQ
         s0iSsDHKMmYcHlmXKZnmxXCwGK+jERxzzOjdsCl0gX0Ty4A6A87/NI1IMbg81x+Ihl7O
         lVhApp7Epcs74W1E3J1Y9cGrZseAEswqq5bBlwOIIE5RZYKHXSTmKCBWuXfdH0qp8rA0
         P+jAhoEGG27aIRXS3Xi43QWgQL3cf9xcTnv/xmsRBMRm/x+h/EUpHptmEwZ9Ul132NsC
         vKYOE1fsjP+4VwGav5n0JPNLMTgtN9ISCoIw74rqMXedXlpt7IJh+V2d9F6uJlIobspj
         nCVA==
X-Received: by 10.236.19.198 with SMTP id n46mr13263727yhn.8.1370278164940;
        Mon, 03 Jun 2013 09:49:24 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.64.196 with SMTP id q4ls2257160qes.72.gmail; Mon, 03 Jun
 2013 09:49:23 -0700 (PDT)
X-Received: by 10.224.105.75 with SMTP id s11mr19793172qao.40.1370278163708;
        Mon, 03 Jun 2013 09:49:23 -0700 (PDT)
Original-Received: from mail-qe0-f44.google.com (mail-qe0-f44.google.com [209.85.128.44])
        by mx.google.com with ESMTPS id p10si3923576qcq.138.2013.06.03.09.49.23
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 03 Jun 2013 09:49:23 -0700 (PDT)
Received-SPF: pass (google.com: domain of jyasskin@google.com designates 209.85.128.44 as permitted sender) client-ip=209.85.128.44;
Original-Received: by mail-qe0-f44.google.com with SMTP id 6so2503325qeb.17
        for <std-proposals@isocpp.org>; Mon, 03 Jun 2013 09:49:23 -0700 (PDT)
X-Received: by 10.224.146.66 with SMTP id g2mr19854778qav.50.1370278163430;
 Mon, 03 Jun 2013 09:49:23 -0700 (PDT)
Original-Received: by 10.229.80.194 with HTTP; Mon, 3 Jun 2013 09:49:03 -0700 (PDT)
In-Reply-To: <2c8e6079-9c87-425a-93e2-39251df57cd8@isocpp.org>
X-Gm-Message-State: ALoCoQnoHmBWobN35WnK1mEN24mBSp8yIXuD7YF0KPEx2at1hLW5hR6udelXRDPrEKuvVkQ9QPT3wFxV5GrXN5ZHytUtQm7UHLYVf5QuE73ojTzn4yO1cnn9+jNgpVu6r5w4vZ0FPf67v+Ol49ON1YDSD3jrHpe6aTsocEB3Y5yhePu0SH05yQvuijV+IkWt8Yju1+bjBsEo
X-Original-Sender: jyasskin@google.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of jyasskin@google.com designates 209.85.128.44 as permitted sender)
 smtp.mail=jyasskin@google.com;       dkim=pass header.i=@google.com;
       dmarc=pass (p=REJECT dis=none) d=google.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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:4823
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4823>

On Mon, Jun 3, 2013 at 9:22 AM,  <carrierandoperator@yahoo.co.uk> wrote:
>
> On Monday, June 3, 2013 10:40:10 AM UTC-4, Jonathan Wakely wrote:
>>
>> This looks similar to the array_ref proposal from
>> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3334.html
>
>
> Thanks for pointing that out, Jonathan. There is much similarity to LLVM's
> `llvm::ArrayRef and `llvm::MutableArrayRef`, which the array_ref proposal
> drew from. I didn't know about the array_ref proposal.
>
> The primary differences between sequences and array_refs are:
>
> array_ref elements are immutable. The mutable variant
> (`llvm::MutableArrayRef`) was omitted from the array_ref proposal.
> sequence elements may be immutable or mutable (similar to
> `llvm::MutableArrayRef`)
> array_ref provides mutator member functions so that the pointer and length
> of an instance's represented array may be modified (shrunk in place from
> either end or reset).

> sequences do not provide member or length mutators (as outlined). This was
> by design; it restricts mobility and misuse, while adding some opportunity
> for optimization with the expense that more temporary sequences will be
> created in some scenarios.

So your proposed class is not assignable? That's likely to be a problem.

> The array_ref proposal adds string_ref, which is similar to array_ref with a
> few extra member functions for common string operations.
>
> --
>
> ---
> 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.
> Visit this group at
> http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.
>
>

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.



.
