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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b2f0d9dd618dc28c X-Google-Attributes: gid103376,public From: tmoran@bix.com Subject: Re: how to make a record work??? any help would be greatly appreciated Date: 1999/09/14 Message-ID: <%3xD3.87$Fh.7794@typhoon-sf.snfc21.pbi.net>#1/1 X-Deja-AN: 525090176 References: <7rm3n8$to1$1@nnrp1.deja.com> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.snfc21.pbi.net 937336187 206.170.2.207 (Tue, 14 Sep 1999 12:09:47 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Tue, 14 Sep 1999 12:09:47 PDT Newsgroups: comp.lang.ada Date: 1999-09-14T00:00:00+00:00 List-Id: > type a is array (1..6) of integer; > type neighbouring_country is > record > type my_country is array (1..6) of neighbouring_country; > a(i):=my_country(i); Attempts to store a neighbouring_country in an integer. > get (my_country(i).neighbouring_country); Attempts to read into the "neighbouring_country" field of a neighbouring_country - but there is no such field. If you want to input/output a rectangular table, why not just use what you have - a rectangular array of yes/no/self? In any case, choose names that match the idea. My_country certainly sounds like a single, particular country, but actually it's a type name. A neighboring_country is also not a particular country, but the name of a (different) type. A neighboring_country has all the info there is about a country, namely a name and a list of its neighbors, but my_country has only a list of neighbors, and no name. Look at "Ada Quality and Style" for good suggestions.