From: Martin Dowie <martin@dowie-cs.demon.co.uk>
Subject: Re: Array range type for Verdix Ada83 compiler question.
Date: 1999/09/09
Date: 1999-09-09T00:00:00+00:00 [thread overview]
Message-ID: <37D82076.6F85EF06@dowie-cs.demon.co.uk> (raw)
In-Reply-To: 37D8106C.3F17@pipeline.com
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
prev parent reply other threads:[~1999-09-09 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-09 0:00 Array range type for Verdix Ada83 compiler question Michael
1999-09-09 0:00 ` Tucker Taft
1999-09-09 0:00 ` Martin Dowie [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox