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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 18 Aug 2019 12:04:32 -0500 Subject: Re: The answer to "Can Ada replace FORTRAN for numerical computation? Newsgroups: comp.lang.ada References: <4ba1579b-a096-483d-8f7a-9028a419d643@googlegroups.com> <28590d5c-d5f0-4322-9aa4-e1bb92419db3@googlegroups.com> From: Norman Worth Date: Sun, 18 Aug 2019 11:04:27 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-jElgNB/B5ISjo9mtpH9gpCm6Gm4px8Sc5yGgnUYaHBKbBfm8N70rD+k0AI9YTQh0BNVif+sq6kdnq8v!Td5JDv4r4nKOwYXljbC3nAtKXk2Ztf3hBCimZiXBFtNSOcPfY5EDl5r6+udXbKCZUoTQUyY3AiYd X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2538 Xref: reader01.eternal-september.org comp.lang.ada:57075 Date: 2019-08-18T11:04:27-06:00 List-Id: Dmitry A. Kazakov wrote: > On 2019-08-16 20:29, Norman Worth wrote: >> Dmitry A. Kazakov wrote: >>> On 2019-08-15 18:45, Norman Worth wrote: >>> >>>> I agree that arrays would probably work better as containers, but >>>> array slices are very handy in a number of cases when you need to >>>> copy part of an array or restrict the view of the array.  But then >>>> slices would probably work better as container functions too. >>> >>> Rather containers would work better as arrays and slices of like >>> String vs Unbounded_String. >>> >> Of course we can have (and sometimes do have) arrays of containers. > > Jagged and n-D arrays cover all cases. Containers without array > interface are usually no containers at all, e.g. lists. > I don't recommend the things I show in the example. Problem permitting, anything else is better. But in those rare cases where it might be necessary, it is available and it works, in a messy sort of way.