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,aa7f494bf30adbc7 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!nwrdny03.gnilink.net.POSTED!0e8a908a!not-for-mail From: Hyman Rosen User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: [newbie] simple(?) data structures References: <2j1e30Fsrg8vU1@uni-berlin.de> <2jao1qFvj2rgU1@uni-berlin.de> <2jc33qFv3sitU1@uni-berlin.de> <1087475845.607135@master.nyc.kbcfp.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 18 Jun 2004 05:06:51 GMT NNTP-Posting-Host: 68.160.250.166 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny03.gnilink.net 1087535211 68.160.250.166 (Fri, 18 Jun 2004 01:06:51 EDT) NNTP-Posting-Date: Fri, 18 Jun 2004 01:06:51 EDT Xref: g2news1.google.com comp.lang.ada:1641 Date: 2004-06-18T05:06:51+00:00 List-Id: David Starner wrote: > Turning an index into a point has > been standard in optimizing compilers for at least a decade. But if you want to call a subroutine to work on part of an array, in C you can create a pointer into the middle of the array and pass that, while in Ada you would need to pass both an array and an index. That's not so easy to optimize away.