From: vashwath@rediffmail.com (prashna)
Subject: What is happening Here?Totally clueless
Date: 19 Aug 2003 06:22:52 -0700
Date: 2003-08-19T13:22:53+00:00 [thread overview]
Message-ID: <d40d7104.0308190522.4b631227@posting.google.com> (raw)
Hi all,
Have a look at the following program,
with text_io;
use text_io;
procedure TEST is
type array_unconstrained is array(integer range <>) of integer;
subtype array_local is array_unconstrained(1..10);
array1 : array_local;
begin
array1 := (others => 0);
array1(1..2) := array_local'(others => (2));
^^^^ can anybody what exactly is this?why they
are not assigning directly to 2 without doing this(Typecast????)
put_line(Integer'image(array1(2)));
put_line(Integer'image(array1(3)));
end TEST;
When I execute a constraint error is being raised.Can any body explain
what is going on here.
Thanks in advance,
next reply other threads:[~2003-08-19 13:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-19 13:22 prashna [this message]
2003-08-19 14:36 ` What is happening Here?Totally clueless steveo
2003-08-19 15:06 ` Nick Roberts
2003-08-20 8:34 ` prashna
2003-08-20 20:45 ` Simon Wright
2003-08-20 22:00 ` chris
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox