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,99c75a8440c619dc X-Google-Attributes: gid103376,public From: Martin Dowie Subject: Re: Array range type for Verdix Ada83 compiler question. Date: 1999/09/09 Message-ID: <37D82076.6F85EF06@dowie-cs.demon.co.uk>#1/1 X-Deja-AN: 523111621 Content-Transfer-Encoding: 7bit X-NNTP-Posting-Host: dowie-cs.demon.co.uk:193.237.34.207 References: <37D8106C.3F17@pipeline.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 936911006 nnrp-11:29163 NO-IDENT dowie-cs.demon.co.uk:193.237.34.207 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-09-09T00:00:00+00:00 List-Id: is your compiler getting confused about which unary minus operator to use for the '-' in '-100'? Michael wrote: > Hi, > > I have a bit a code: > > type ta is array (0 .. 8) of boolean; > type Request_Numbers_Array is array (-100 .. 100) of integer; > > The first line compiles just fine. > The second line says: "index range is ambiguous" and then gives me a > list of possible types (i.e. Short, Long, Integer . . .) > > I fixed the problem in this way: > type Request_Numbers_Array is array (Integer range -100 .. 100) of > integer; > > My question is: Why do I need to do this? > > I would think it could pick a type most suitable for the range. > > Thanks in advance, > > Michael