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,a8567eadfdf78b98 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-15 18:23:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!HSNX.atgi.net!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!nntp2.aus1.giganews.com!nntp.giganews.com!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!ix.netcom.com!nobody From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Why does this happen? Date: Tue, 15 Oct 2002 17:46:40 -0700 Organization: >> Leaf-Eating Penguins? << Message-ID: References: <3DAC92DB.4090307@linux.nu> NNTP-Posting-Host: d1.56.05.6c Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Server-Date: 16 Oct 2002 01:23:30 GMT User-Agent: KNode/0.6.1 Xref: archiver1.google.com comp.lang.ada:29824 Date: 2002-10-16T01:23:30+00:00 List-Id: svesse fed this fish to the penguins on Tuesday 15 October 2002 03:12 pm: > > Can someone explain why this would be illegal ? > > ---- test.ads --- > package test is > > Type Mtr_Type is array (Positive range <>, > Positive range <>) of integer; > > type T_typ (Ns : Positive) is record > M : Mtr_Type (1..2, 1 .. ns); -- does not compile I know Ada is supposed to be case insensitive, but if this is a direct cut&paste from your file... You have "Ns" in the descriminant (hope I have the proper term), but "ns" in the array dimension. You /also/ have spaces surrounding the "..". Neither of these differences show in the following two lines. > -- M : Mtr_Type (1..Ns, 1..Ns); -- compiles > -- M : Mtr_Type (1..Ns, 1..2); -- compiles The only other idea is that the calculation of offsets for "1..2" can not be done immediately -- it may be that the parsing requires variable ranges to be leftmost in the subscript order. -- > ============================================================== < > wlfraed@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG < > wulfraed@dm.net | Bestiaria Support Staff < > ============================================================== < > Bestiaria Home Page: http://www.beastie.dm.net/ < > Home Page: http://www.dm.net/~wulfraed/ <