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-Thread: 103376,bc4137777a63bff X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!proxad.net!skynet.be!newspost001!tjb!not-for-mail Date: Tue, 02 Aug 2005 13:37:56 +0200 From: Adrien Plisson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: fr-fr, fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Help needed for ada package References: <1122305318.728942.304120@f14g2000cwb.googlegroups.com> <2OudnZo-iL1aN3jfRVn-iQ@comcast.com> <1122475184.849564.159870@g44g2000cwa.googlegroups.com> <1122547648.069514.63520@g14g2000cwa.googlegroups.com> <1122980923.842598.181310@g49g2000cwa.googlegroups.com> In-Reply-To: <1122980923.842598.181310@g49g2000cwa.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42ef5a53$0$27824$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 35d2efb8.news.skynet.be X-Trace: 1122982483 news.skynet.be 27824 81.246.253.195:4130 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:3893 Date: 2005-08-02T13:37:56+02:00 List-Id: strictly_mk@hotmail.com wrote: > open_resit.adb:63:05: argument of type conversion must be single > expression > open_resit.adb:63:17: illegal operand for array conversion you declare: type Associates is array ( Population_Range , Population_Range ) of Boolean; this declares a type, not a variable. you have to declare a variable of this type to use this data structure. > ID is defined in the specification under generic as a long_integer. ID is NOT generic: - it does not appear in a generic clause to this package, - you convert variables of type ID explicitely to Long_Integer everywhere in this package, preventing a truly generic definition of ID. (additionnaly, the array to store citizen association is indexed by Population_Range, not by ID, which leads to a compilation error in the procedure Associate) and what about Rating ? it seems not defined anywhere... -- rien