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 10.107.55.195 with SMTP id e186mr17630157ioa.24.1469482744952; Mon, 25 Jul 2016 14:39:04 -0700 (PDT) X-Received: by 10.157.56.205 with SMTP id k13mr965859ote.10.1469482744929; Mon, 25 Jul 2016 14:39:04 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f6no4625337ith.0!news-out.google.com!d130ni14426ith.0!nntp.google.com!f6no4617164ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 25 Jul 2016 14:39:04 -0700 (PDT) In-Reply-To: <57963014$0$20650$e4fe514c@news.kpn.nl> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:191:8380:7220:5985:2c17:9409:aa9c; posting-account=fdRd8woAAADTIlxCu9FgvDrUK4wPzvy3 NNTP-Posting-Host: 2601:191:8380:7220:5985:2c17:9409:aa9c References: <579615c5$0$20671$e4fe514c@news.kpn.nl> <57963014$0$20650$e4fe514c@news.kpn.nl> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8388d572-b06f-45fe-aebe-78ce150a05cd@googlegroups.com> Subject: Re: Using Access Types for a simple solution From: rieachus@comcast.net Injection-Date: Mon, 25 Jul 2016 21:39:04 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:31167 Date: 2016-07-25T14:39:04-07:00 List-Id: On Monday, July 25, 2016 at 11:28:22 AM UTC-4, ldries46 wrote: > Thanks Dimitri, >=20 > I did not realise that the aliased not before the array comes but before = the=20 > box. > The suggestion you did I tried before but the code became to complicated = to=20 > be still readable. > May be this not the best way to tackle my problem but is is better readab= le=20 > and therefore better maintainable I first read this hours ago, then left it to simmer while I went to a docto= r's appointment. I am sure solving your programming problem in Ada is easy= . What you need to learn first though is how to think about problems to be= solved in Ada. It has been over 25 years since I tripped over the most important rule of s= oftware engineering (not programming!) in Ada. Model the problem space, no= t the solution. There may be lots of programs needed in a given problem sp= ace, and you quickly learn that requirements change rapidly, even after the= y have been frozen. ;-( All I know so far is that you have a collection of records (called Boxes) a= nd it may make sense to address them by row and column, or by pointer (acce= ss value in Ada). What activities make sense for your Boxes? Creation? mo= difying contents? sort? on what key? print? write to a file? Have them cha= se each other around the screen? There are other possibilities. The Ada standard library has lots of differ= ent types of collections depending on what you need to do with them. It ma= y be that a two-dimensional array is what the requirements assume. (But you= know what I think about requirement documents.)=20