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=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!gnilink.net!wns13feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: [newbie] simple(?) data structures Date: 18 Jun 2004 08:21:23 -0600 Organization: LJK Software Message-ID: References: <2j1e30Fsrg8vU1@uni-berlin.de> <2jao1qFvj2rgU1@uni-berlin.de> <2jc33qFv3sitU1@uni-berlin.de> <1087475845.607135@master.nyc.kbcfp.com> <10267207.GmbXj46X37@linux1.krischik.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1087564800 16128 192.135.80.34 (18 Jun 2004 13:20:00 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 18 Jun 2004 13:20:00 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:1661 Date: 2004-06-18T08:21:23-06:00 List-Id: In article <10267207.GmbXj46X37@linux1.krischik.com>, Martin Krischik writes: > I allways thought that: > > My_Function (My_Data ( 20 .. Data'Last)) > > was the answer to that problem. And I find that a lot more elegant then a > pointer. Of corse the compiler might still us a pointer internally. Of course the resulting machine code (not necessarily the compiler) internally _will_ use a pointer. But that machine code will also use base-2 arithmetic, without requiring the programmer to deal in base-2. The resulting machine code will use numeric addresses, while letting the human programmer continue to use symbolic names for the very same routines. The purpose of a compiler is to make the relationship of the programmer to the machine code more trouble-free.