TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Proportional Font
Show HTML Part by Default
Condense Mail Headers

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

Print Reply
Content-Transfer-Encoding: 8bit
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: Apurva Shukla <[log in to unmask]>
Date: Tue, 8 Jul 2003 11:14:19 +0530
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
MIME-Version: 1.0
Reply-To: Apurva Shukla <[log in to unmask]>
Parts/Attachments: 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)