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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2f343e3986ead102,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!club-internet.fr!feedme-small.clubint.net!news.motzarella.org!motzarella.org!not-for-mail From: =?ISO-8859-1?Q?S=E9bastien?= Newsgroups: comp.lang.ada Subject: String declaration and initialization Date: Thu, 22 May 2008 15:47:38 +0000 Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: feeder.motzarella.org U2FsdGVkX1/CXbmFdLrJWBaIW8cuT2aU7gXxmElb9Q3YuuhfCjTuN1CXBeDNGM8g9SUmst9GBO7Z59jdogxUatzectP47j51mzkU5i/zY4TfzuERla2GCs2aysRHl9W9m3ShNVpO3ZM/rMhWn6zwtA== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Thu, 22 May 2008 15:47:45 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19ERgdKVlMo3s+FX5pvpR9el8fY51q3ZINEUghklEhZng== Cancel-Lock: sha1:6MpbbQi8VNeTOedCGSHGMeo+aEo= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) Xref: g2news1.google.com comp.lang.ada:287 Date: 2008-05-22T15:47:38+00:00 List-Id: Hi, Several times I had to do the following: declare buffer: String; -- Error at compile time begin case SomeTest is case TEST1 => buffer := "Test1"; case TEST2 => buffer := "Test2"; end case; MyTreatment1(buffer, buffer'Size); MyTreatment2(buffer, buffer'Size); MyTreatment3(buffer, buffer'Size); end; But How can I do this since I can't declare a string without constraint? Sebastien