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 10:17:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!skynet.be!skynet.be!freenix!enst.fr!beeblebrox!nobody From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Ada 0x, exception idea ? Date: Sun, 27 Jul 2003 19:13:10 +0200 Organization: Avian Carrier & Friends Message-ID: <87smorj3kp.fsf@inf.enst.fr> References: <3F229597.3090909@myob.com> NNTP-Posting-Host: willow.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: avanie.enst.fr 1059326222 43423 137.194.161.3 (27 Jul 2003 17:17:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 27 Jul 2003 17:17:02 +0000 (UTC) User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.5 (cauliflower, i386--freebsd) Cancel-Lock: sha1:/U0Pjv6ociVssn8Ctku+bn5M7pI= X-Leafnode-NNTP-Posting-Host: 127.0.0.1 Xref: archiver1.google.com comp.lang.ada:40871 Date: 2003-07-27T19:13:10+02:00 List-Id: >>>>> "Nick" == Nick Roberts writes: Nick> RAISE [exception_name] [WHEN expression]; Nick> I think it's generally felt that this change is worthwhile Nick> because it should be extremely easy to make, harmless (to Nick> existing code), safe (re code intelligibility), and useful (if Nick> only slightly). How would you integrate this with Ada.Exceptions.Raise_Exception? (to attach an error message to the exception occurrence) RAISE [exception_name] WITH [exception_message] [WHEN expression] ? Would expression be evaluated before or after exception_message? Would exception_message be evaluated at all if the test is wrong? Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam