TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Apurva Shukla <[log in to unmask]>
Tue, 8 Jul 2003 11:14:19 +0530
text/plain (23 lines)
Hi all,
I am a starter in Ada and need certain help ragrding arrays. i have got
a code in which there is a line which says:

a(11..10) := b(1..0);

here the arrays a and b are of the same type( i have tried using integer )
and the range is (1..10)
So my questions are:
1. Why is ada compiler not noticing that the array range has been
voilated by saying a(11..10)
2. And this progarm runs also but the values are not providing any clue
of what ada compiler does exactly.

i am using object ada compiler for compiling my program.
Thanks in advance

Apurva Shukla
Embedded Systems-Avionics
InfosysŪ (Mysore)