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-Thread: 103376,86c750b8474bf6d5 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder.news-service.com!club-internet.fr!feedme-small.clubint.net!feeder1-1.proxad.net!proxad.net!feeder1-2.proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <484ABED3.8040909@obry.net> Date: Sat, 07 Jun 2008 19:01:07 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: Simon Wright Subject: Re: About String References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 07 Jun 2008 19:01:11 CEST NNTP-Posting-Host: 90.35.55.221 X-Trace: 1212858071 news.orange.fr 874 90.35.55.221:4647 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:601 Date: 2008-06-07T19:01:11+02:00 List-Id: Simon Wright a �crit : > You might want to handle the problem locally: > > procedure Patati_Patata is > begin > declare > S : String := A_Function_Raising_Constraint_Error; > begin > -- some code > exception > when Constraint_Error => > -- deal with the problem and carry on .. > end; > -- .. here This one is wrong. The exception on the declare section can't be handled on the local block as it will raised outside of the block. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595