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,699cc914522aa7c4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Structured exception information Date: Fri, 19 Jan 2007 15:07:49 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1169237270 1780 192.74.137.71 (19 Jan 2007 20:07:50 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 19 Jan 2007 20:07:50 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:/V9+VPSDUE+GYfbpHavTUrQRXxY= Xref: g2news2.google.com comp.lang.ada:8344 Date: 2007-01-19T15:07:49-05:00 List-Id: Stephen Leake writes: > Lots of people expect lots of things. Sometimes, those expectations > are unreasonable, and should be changed. Sometimes. >...That's what I'm trying to > explore here; I think expecting anything other than a string for > exception data is unreasonable. I don't agree. > So far, you have presented no case to show I am wrong. By now, several cases have been presented. Are you convinced? To me, it seems pretty simple: if you restrict the type of anything (parameters, variables, exception-data) to be String, you're losing type information. > If you look into the details of "structured exception handling" in > other languages and implementations, they have bugs, and fundamental > flaws in design. Please be more specific. >...That is why Ada did not go that way. Ada is _much_ > more careful about getting the core design right, allowing fully > robust and safe implementations of _all_ features, especially in > multi-tasking and multi-processing environments. Please explain why exceptions-as-objects causes any trouble with respect to multi-. > So if you find yourself fighting Ada to do something, you need to step > back and think more carefully about _why_ you are doing it that way. > Ada is telling you it is inherently unsafe. Well, I suppose I should be flattered, given that I was one of the designers of Ada 95. But the fact is: we made mistakes. If Ada is telling you "it is inherently unsafe", perhaps Ada is simply wrong. - Bob