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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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 04:42:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!usenet-fr.net!enst.fr!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: Ada 0x, exception idea ? Date: Sun, 27 Jul 2003 06:42:50 -0500 Organization: ENST, France Message-ID: References: <3F229597.3090909@myob.com> NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1059306173 42663 137.194.161.2 (27 Jul 2003 11:42:53 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 27 Jul 2003 11:42:53 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020828 X-Accept-Language: en-us, en X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:40859 Date: 2003-07-27T06:42:50-05:00 wesgroleau@myrealbox.com : > case C_function (params) is > > when 0 => null; -- success > when Bummer => raise Its_a_Bummer; > when Darn => raise Darn_it; > when Blast => raise Blast_It; > when Disaster => raise Program_Error; > This still seems a bit "visually-bulky" (for want of a better expression) but interesting and cleaner than possible pages of "if-then-elsif" before resuming with the original purpose of the algorithm. > and some folks thought > > raise when ; > > should be there as well. But it was rejected. > Is this discussed in the Ada95 Rationale ? If not, where ? As a related idea, is there thought/discussion about adding a mechanism to attach and retrieve error codes to an exception for later processing in the exception handler ? -- ------------------------------------------------- -- Merge vertically for real address -- -- s n p @ t . o -- k i e k c c m -------------------------------------------------