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.182.22.201 with SMTP id g9mr14398070obf.18.1412526035051; Sun, 05 Oct 2014 09:20:35 -0700 (PDT) X-Received: by 10.140.102.110 with SMTP id v101mr12159qge.6.1412526034943; Sun, 05 Oct 2014 09:20:34 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h18no1813650igc.0!news-out.google.com!q8ni41qal.1!nntp.google.com!dc16no785609qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 5 Oct 2014 09:20:34 -0700 (PDT) In-Reply-To: <831a97d3-fa0b-49d9-980b-46e7eb12c1ee@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=93.37.240.180; posting-account=9fwclgkAAAD6oQ5usUYhee1l39geVY99 NNTP-Posting-Host: 93.37.240.180 References: <831a97d3-fa0b-49d9-980b-46e7eb12c1ee@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: specification file ads problem From: mockturtle Injection-Date: Sun, 05 Oct 2014 16:20:34 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:22104 Date: 2014-10-05T09:20:34-07:00 List-Id: I see an easy error in your code, but I am not sure if it is an error introduced by doing cut'n'paste: the spec of your package "MyPackage" ends with "end Neighbours" rather than with "end MyPackage." Moreover, I think that you should put "N : Integer" before the definition of myType since when the compiler sees "type myType is..." does not know what N is. Moreover, I am not 100% sure that you can use N-1 as array boundary. I know you cannot do that in a record declaration. Actually, I am quite confident that your usage is right, but I should check with a compiler. Finally, you "with" your package, but you do not instantiate it. This, however, should not cause any error, unless you try to "use" it.