From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-04 23:03:02 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn11feed!wn14feed!worldnet.att.net!199.45.49.37!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny03.gnilink.net.POSTED!53ab2750!not-for-mail From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Counter-proposal for variable arrays References: <3F739C1D.4030907@attbi.com> <3F78E850.8010401@comcast.net> <3F797748.3000203@noplace.com> <834clb.uan1.ln@skymaster> <3F79EF18.7060600@comcast.net> <3F7B1076.8060106@comcast.net> <5mknnv4u96qqudrt4bd8n4t1cljp2fjlp8@4ax.com> <1065215180.95094@master.nyc.kbcfp.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sun, 05 Oct 2003 06:03:00 GMT NNTP-Posting-Host: 162.83.244.79 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny03.gnilink.net 1065333780 162.83.244.79 (Sun, 05 Oct 2003 02:03:00 EDT) NNTP-Posting-Date: Sun, 05 Oct 2003 02:03:00 EDT Xref: archiver1.google.com comp.lang.ada:251 Date: 2003-10-05T06:03:00+00:00 List-Id: Pascal Obry wrote: > You are confusiong the language and the libraries. C++ has no vector, no > array not even strings, just pointers to chunk of memories. I am not confusing anything. C++ has arrays. And C++ string literals have type "array[N] of char" where N is determined by the contents of the literal. > Ada has array which support 'first 'last 'length 'range slice and more. C++ has arrays. They all start at 0. C++ doesn't have slices. It also doesn't have arrays with dynamic sizes (although C99 now does). And you can't assign them in one statement. The number of elements in array is available through the classic sizeof/sizeof construct, or through a prettier template version. Making obviously wrong statements about C++ is silly.