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!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!feed.news.tiscali.de!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: [newbie] simple(?) data structures Date: Fri, 18 Jun 2004 15:04:02 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <2j1e30Fsrg8vU1@uni-berlin.de> <2jao1qFvj2rgU1@uni-berlin.de> <2jc33qFv3sitU1@uni-berlin.de> <1087475845.607135@master.nyc.kbcfp.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1087571042 27148 134.91.1.34 (18 Jun 2004 15:04:02 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Fri, 18 Jun 2004 15:04:02 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:1665 Date: 2004-06-18T15:04:02+00:00 List-Id: Hyman Rosen wrote: : 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. While I'd do this, or pass just a String as Martin has shown, or pass an index because the string is at the same nesting level, I can, in Ada, create a pointer into the middle of the array and pass that, and then use pointer arithmetic. It is just a lot more verbose, cumbersome, and not necessary ;-)