comp.lang.ada
 help / color / mirror / Atom feed
* Array range type for Verdix Ada83 compiler question.
@ 1999-09-09  0:00 Michael
  1999-09-09  0:00 ` Tucker Taft
  1999-09-09  0:00 ` Martin Dowie
  0 siblings, 2 replies; 3+ messages in thread
From: Michael @ 1999-09-09  0:00 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-09-09  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox