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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9b2046241520981f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-27 08:31:41 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!82-43-33-75.cable.ubr01.croy.blueyonder.co.UK!not-for-mail From: "Nick Roberts" Newsgroups: comp.lang.ada Subject: Re: Ada 0x, exception idea ? Date: Sun, 27 Jul 2003 16:33:39 +0100 Message-ID: References: <3F229597.3090909@myob.com> NNTP-Posting-Host: 82-43-33-75.cable.ubr01.croy.blueyonder.co.uk (82.43.33.75) X-Trace: news.uni-berlin.de 1059319899 20082253 82.43.33.75 (16 [25716]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Xref: archiver1.google.com comp.lang.ada:40865 Date: 2003-07-27T16:33:39+01:00 List-Id: My apologies for my news server, which seems to be missing certain posts in this thread. I cannot find a relevant AI (or AC), but I am fairly sure that people have hinted that the ARG is more or less determined to replace the existing syntax for a raise statement with: RAISE [exception_name] [WHEN expression]; The form with the 'when' reserved word would indeed be syntactic sugar, exactly equivalent to: IF expression THEN RAISE [exception_name]; END IF; I think it's generally felt that this change is worthwhile because it should be extremely easy to make, harmless (to existing code), safe (re code intelligibility), and useful (if only slightly). "sk" wrote in message news:mailman.5.1059306172.320.comp.lang.ada@ada.eu.org... > 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 ? Such a mechanism already exists. Look in the Reference Manual, chapter 11. -- Nick Roberts Jabber: debater@charente.de [ICQ: 159718630]