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 14:53:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!feed2.news.rcn.net!rcn!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail Message-ID: <3DA5F6E6.9030506@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> <3DA5AE5F.3030902@attbi.com> 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: rwcrnsc53 1034286838 12.235.91.30 (Thu, 10 Oct 2002 21:53:58 GMT) NNTP-Posting-Date: Thu, 10 Oct 2002 21:53:58 GMT Organization: AT&T Broadband Date: Thu, 10 Oct 2002 21:53:58 GMT Xref: archiver1.google.com comp.lang.ada:29697 Date: 2002-10-10T21:53:58+00:00 List-Id: Stephen Leake wrote: > Mark Biggar writes: > > >>Justin Birtwell wrote: >> >>>Oh, >>>N:Natural; >>>S:String(1..N); Doesn't give me a compile error. Any ideas why? >> >> >> >>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. > > > Actually, N needs to be _exactly_ 6 for the code to avoid Constraint_Error. > He had too examples, the first: S(1..6) := T&U; works with N >=6 the second: S := T&U does require exactly 6. -- Mark Biggar mark.a.biggar@attbi.com