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,ee1a8b8db84c88f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada exception block does NOT work? References: <4301ab29$0$6989$9b4e6d93@newsread2.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Wed, 17 Aug 2005 01:39:02 GMT NNTP-Posting-Host: 4.240.108.6 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.pas.earthlink.net 1124242742 4.240.108.6 (Tue, 16 Aug 2005 18:39:02 PDT) NNTP-Posting-Date: Tue, 16 Aug 2005 18:39:02 PDT Xref: g2news1.google.com comp.lang.ada:4143 Date: 2005-08-17T01:39:02+00:00 List-Id: bubble wrote: > > the statement , Avg := Sum / Data'Length; > should be throw a exception signal when Data'length is 0 (empty array) > and then the exception block handler should catch the signal, and do some > recovery process. In Ada, exceptions are raised and handled, not thrown and caught. They're also better integrated into the language than in the languages that throw and catch them; there are no "try" statements in Ada. -- Jeff Carter "To Err is human, to really screw up, you need C++!" St�phane Richard 63