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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a37:a4c5:: with SMTP id n188mr10167183qke.337.1587257551758; Sat, 18 Apr 2020 17:52:31 -0700 (PDT) X-Received: by 2002:a9d:7d91:: with SMTP id j17mr4463629otn.342.1587257551517; Sat, 18 Apr 2020 17:52:31 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 18 Apr 2020 17:52:31 -0700 (PDT) In-Reply-To: <28c484ae-fd22-44e3-948e-904cebccf448@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=70.109.61.2; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 70.109.61.2 References: <87muca3vgd.fsf@nightsong.com> <57d49047-0a61-4d13-8822-d004732a3acc@googlegroups.com> <007895f7-b923-4267-9801-d0caaaa30838@googlegroups.com> <41ef6a77-3b14-43ff-b6ae-510000a33ad4@googlegroups.com> <9f2bfb05-fb5e-45cf-909e-53629b939da3@googlegroups.com> <229f9564-4f23-4b12-bea9-518ceda86a09@googlegroups.com> <9ecb00e7-e677-4cec-80f7-3484116c871a@googlegroups.com> <28c484ae-fd22-44e3-948e-904cebccf448@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Beginning Ada Programming, by Andrew T. Shvets (2020) From: Jere Injection-Date: Sun, 19 Apr 2020 00:52:31 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:58414 Date: 2020-04-18T17:52:31-07:00 List-Id: On Saturday, April 18, 2020 at 6:33:33 PM UTC-4, Jere wrote: > On Saturday, April 18, 2020 at 6:18:30 PM UTC-4, Luke A. Guest wrote: > > On 18/04/2020 22:54, cantanima wrote: > > > On Saturday, April 18, 2020 at 12:59:38 PM UTC-5, Jere wrote: > > >> Actually it does work on low level arrays in C++. It doesn't work > > >> on pointers to array elements however, which people often confuse > > >> with arrays (that's how people most often pass them to functions, > > >> but there are other methods). > > > > > > I didn't realize C++ had progressed to tracking how long a low-level array is, but in retrospect it's come along so much in terms of what you can do at compile-time that I should have tested before commenting. Thank you. > > > > I don't think it can, I think the new iterator for loops are for stl > > containers only. I could be wrong though. > > C++ has had a lot of changes over the last decade or so. This > example compiles and runs correctly: > I fail at expressing what I mean! This didn't come out the way I meant it. I thought you were referring to the old iterator style and it is common for people not to be familiar with C++11 and higher even today. Sorry if it came across in a bad way! Not intended.