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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9b2046241520981f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-27 09:35:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!cycny01.gnilink.net!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny02.gnilink.net.POSTED!53ab2750!not-for-mail From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada 0x, exception idea ? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sun, 27 Jul 2003 16:35:42 GMT NNTP-Posting-Host: 162.83.157.195 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny02.gnilink.net 1059323742 162.83.157.195 (Sun, 27 Jul 2003 12:35:42 EDT) NNTP-Posting-Date: Sun, 27 Jul 2003 12:35:42 EDT Xref: archiver1.google.com comp.lang.ada:40867 Date: 2003-07-27T16:35:42+00:00 List-Id: sk wrote: > raise Call_Error1 when Condition1; > raise Call_Error2 when Condition2; > ... is lot more readable than and equivalent ... > if Condition1 then > raise Error1; > elsif Condition2 then > raise Error2; > ... Why would you write it that way? If you just want equivalent one liners, what's wrong with if Condition1 then raise Error1; end if; if Condition2 then raise Error2; end if; ...