comp.lang.ada
 help / color / mirror / Atom feed
From: Michael <nospam@pipeline.com>
Subject: Array range type for Verdix Ada83 compiler question.
Date: 1999/09/09
Date: 1999-09-09T00:00:00+00:00	[thread overview]
Message-ID: <37D8106C.3F17@pipeline.com> (raw)

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




             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 Michael [this message]
1999-09-09  0:00 ` Array range type for Verdix Ada83 compiler question Martin Dowie
1999-09-09  0:00 ` Tucker Taft
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox