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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ae9506fd4dcf7090 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-10 09:44:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!wn12feed!wn11feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!sccrnsc01.POSTED!not-for-mail Message-ID: <3DA5AE5F.3030902@attbi.com> From: Mark Biggar User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Concatenation and Characters References: <44hp9.807$_u6.205@nwrddc01.gnilink.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 12.235.91.30 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc01 1034268265 12.235.91.30 (Thu, 10 Oct 2002 16:44:25 GMT) NNTP-Posting-Date: Thu, 10 Oct 2002 16:44:25 GMT Organization: AT&T Broadband Date: Thu, 10 Oct 2002 16:44:25 GMT Xref: archiver1.google.com comp.lang.ada:29677 Date: 2002-10-10T16:44:25+00:00 List-Id: Justin Birtwell wrote: > Oh, > > N:Natural; > S:String(1..N); Doesn't give me a compile error. Any ideas why? Becasue evaluating an uninitialized variable is only a bounded error, which is handled at run-time. The code is allowed to do one of a small list of things which includes: raise a run-time exception or use what ever junk value is found there. The compiler is allow to, but does not have to, warn you about the use of uninitialized variables, beceause in the general case determining this at compile time is equilivant to solving the halting problem. I your case it is likely that your compiler did the second thing above: used the junk value (very likely 0) and thus S was too small (N needs to be at least 6 for your example to work) and thus you get a CE. -- Mark Biggar mark.a.biggar@attbi.com