From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,194f7a105da14a4c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-19 06:22:53 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: vashwath@rediffmail.com (prashna) Newsgroups: comp.lang.ada Subject: What is happening Here?Totally clueless Date: 19 Aug 2003 06:22:52 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 203.90.112.53 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1061299373 7134 127.0.0.1 (19 Aug 2003 13:22:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 19 Aug 2003 13:22:53 GMT Xref: archiver1.google.com comp.lang.ada:41713 Date: 2003-08-19T13:22:53+00:00 List-Id: 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,