220 3785 <CAMeU-s117qGzXpWubZeB16nYOTYxx59kLsr+-=5C1NQSKc38Dg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Mikhail Semenov <mikhailsemenov1957@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Dynamic Arrays: simple syntax
Date: Sat, 20 Apr 2013 20:32:03 +0100
Lines: 153
Approved: news@gmane.org
Message-ID: <CAMeU-s117qGzXpWubZeB16nYOTYxx59kLsr+-=5C1NQSKc38Dg@mail.gmail.com>
References: <5ddeccbe-40d0-4894-afc5-c0105136b5d7@isocpp.org>
	<d239d1ff-d9ca-4f02-8dff-9b99a31f29e3@isocpp.org>
	<CAMeU-s0-h1jLBKw3omD0w7u9OpEBfnitr5_Tq65-PZfQn_OvMA@mail.gmail.com>
	<e22b1c93-d6d2-4d71-952d-d519cd3c446a@isocpp.org>
	<CAMeU-s3naSYLDEr5tL7KL8=rmCqeH0DvzcaVFaKaLE_R3mEUAA@mail.gmail.com>
	<5172E893.9020204@gmx.net>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11c20b82ed474904dacfe371
X-Trace: ger.gmane.org 1366486326 29878 80.91.229.3 (20 Apr 2013 19:32:06 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 20 Apr 2013 19:32:06 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDC55PNFRYGRBNG2ZOFQKGQE224I3DQ@isocpp.org Sat Apr 20 21:32:06 2013
Return-path: <std-proposals+bncBDC55PNFRYGRBNG2ZOFQKGQE224I3DQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ia0-f199.google.com ([209.85.210.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDC55PNFRYGRBNG2ZOFQKGQE224I3DQ@isocpp.org>)
	id 1UTdW2-0000ad-3f
	for gclcip-std-proposals@m.gmane.org; Sat, 20 Apr 2013 21:32:06 +0200
Original-Received: by mail-ia0-f199.google.com with SMTP id l29sf12799100iag.10
        for <gclcip-std-proposals@m.gmane.org>; Sat, 20 Apr 2013 12:32:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-received:x-beenthere:x-received:received-spf:mime-version
         :x-received:in-reply-to:references:date:message-id:subject:from: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=1aEomrKEWkI5gH7Fx4pUZVcUre74L4O2FsAyQdZif+M=;
        b=fbI7aL9vaayZNIfw0Hv+eNYcJCzdHhMbS7IWyBdUft0XZ2Lkd5M984/S5+1GxjBkSO
         ylDk9QJ8bDkMH0WD1Kg6OdmAPgBpTxnBZOSbgm7ATyWGV16zFcHJ/isx1PJO797FzuM+
         jBKejCo9rGIsrAXl5Tf7ieA521ARuBmkVCrhOFP042+Io5rQ/3bW5sWdMYxpaKZ7SpAe
         8Gh1bBGBKYX+5PhJFWHWTiaVcEhqfESAwIwP4ZxIDKrNMibVmx2I+e3PzPo7ALkVMvDP
         zN+vZPW8M42zWENT3DOZMu+Vk+P5cpClO5/RlDqtfEX776eXQ0oRbOk6KXub0fqT8vRn
  
X-Received: by 10.182.230.169 with SMTP id sz9mr5017636obc.48.1366486325129;
        Sat, 20 Apr 2013 12:32:05 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.221.201 with SMTP id qg9ls503580obc.28.gmail; Sat, 20 Apr
 2013 12:32:04 -0700 (PDT)
X-Received: by 10.60.57.35 with SMTP id f3mr8267380oeq.33.1366486324065;
        Sat, 20 Apr 2013 12:32:04 -0700 (PDT)
Original-Received: from mail-oa0-f52.google.com (mail-oa0-f52.google.com [209.85.219.52])
        by mx.google.com with ESMTPS id l2si14537635oeh.20.2013.04.20.12.32.04
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sat, 20 Apr 2013 12:32:04 -0700 (PDT)
Received-SPF: pass (google.com: domain of mikhailsemenov1957@gmail.com designates 209.85.219.52 as permitted sender) client-ip=209.85.219.52;
Original-Received: by mail-oa0-f52.google.com with SMTP id n12so449642oag.39
        for <std-proposals@isocpp.org>; Sat, 20 Apr 2013 12:32:04 -0700 (PDT)
X-Received: by 10.60.65.233 with SMTP id a9mr7361274oet.67.1366486323904; Sat,
 20 Apr 2013 12:32:03 -0700 (PDT)
Original-Received: by 10.60.85.34 with HTTP; Sat, 20 Apr 2013 12:32:03 -0700 (PDT)
In-Reply-To: <5172E893.9020204@gmx.net>
X-Original-Sender: mikhailsemenov1957@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of mikhailsemenov1957@gmail.com designates 209.85.219.52 as permitted
 sender) smtp.mail=mikhailsemenov1957@gmail.com;       dkim=pass header.i=@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: <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:3785
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/3785>

--001a11c20b82ed474904dacfe371
Content-Type: text/plain; charset=ISO-8859-1

Hello Jens,

I looked at it. My concern is that the dynamic arrays it's just another
container. I think the syntax should be much simpler. And then if somebody
wants they can implement
classes around it.  How many array containers do we need?

As for runtime-sized arrays (N3497) they are implemented on the stack. You
cannot use them as object members, which is a shame. I think they should be
allowed primarily as object members.
The N3497 proposal closely follows C Standard (with some omissions).

Regards,
Mikhail.


On 20 April 2013 20:12, Jens Maurer <Jens.Maurer@gmx.net> wrote:

> On 04/20/2013 08:51 PM, Mikhail Semenov wrote:
> > If you define
> > void f(double a []);
> > the sizeof(a) does not mean much either.
>
> Since the array decays to a pointer, it's the size of a pointer.
>
> > The operator= is not defined for arrays properly anyway (it compares
> pointers).
>
> Are you talking about operator= or operator==?  These are different.
>
> > But if you want, you can define operator= for the class and create
> size() member inside the class.
>
> Did you look at the runtime-size arrays and dynarray proposals?
>
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3532.html
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3497.html
>
> They cover as much ground as is feasible, I believe.
>
> Jens
>
> --
>
> ---
> 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.



--001a11c20b82ed474904dacfe371
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello Jens,</div><div>=A0</div><div>I looked at it. M=
y concern is that the dynamic arrays it&#39;s just another container. I thi=
nk the syntax should be much simpler. And then if somebody wants they can i=
mplement</div>
<div>classes around it.=A0 How many array containers do we need?</div><div>=
=A0</div><div>As for runtime-sized arrays (N3497) they are implemented on t=
he stack. You cannot use them as object members, which is a shame. I think =
they should be allowed primarily as object members.</div>
<div>The N3497 proposal closely follows C Standard (with some omissions).</=
div><div>=A0</div><div>Regards,</div><div>Mikhail.</div></div><div class=3D=
"gmail_extra"><br><br><div class=3D"gmail_quote">On 20 April 2013 20:12, Je=
ns Maurer <span dir=3D"ltr">&lt;<a href=3D"mailto:Jens.Maurer@gmx.net" targ=
et=3D"_blank">Jens.Maurer@gmx.net</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">On 04/20/2013 08:51 PM, Mi=
khail Semenov wrote:<br>
&gt; If you define<br>
&gt; void f(double a []);<br>
&gt; the sizeof(a) does not mean much either.<br>
<br>
</div>Since the array decays to a pointer, it&#39;s the size of a pointer.<=
br>
<div class=3D"im"><br>
&gt; The operator=3D is not defined for arrays properly anyway (it compares=
 pointers).<br>
<br>
</div>Are you talking about operator=3D or operator=3D=3D? =A0These are dif=
ferent.<br>
<div class=3D"im"><br>
&gt; But if you want, you can define operator=3D for the class and create s=
ize() member inside the class.<br>
<br>
</div>Did you look at the runtime-size arrays and dynarray proposals?<br>
<br>
<a href=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3532.ht=
ml" target=3D"_blank">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/20=
13/n3532.html</a><br>
<a href=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3497.ht=
ml" target=3D"_blank">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/20=
13/n3497.html</a><br>
<br>
They cover as much ground as is feasible, I believe.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Jens<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
--<br>
<br>
---<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%2Bunsubscribe@isocpp.org">std-propo=
sals+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>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den" target=3D"_blank">http://groups.google.com/a/isocpp=
..org/group/std-proposals/?hl=3Den</a>.<br>
<br>
<br>
</div></div></blockquote></div><br></div>

<p></p>

-- <br />
&nbsp;<br />
--- <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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

--001a11c20b82ed474904dacfe371--

.
