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,ee1a8b8db84c88f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!cern.ch!news From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Ada exception block does NOT work? Date: Thu, 18 Aug 2005 10:44:43 +0200 Organization: CERN - European Laboratory for Particle Physics Message-ID: References: <4301ab29$0$6989$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sunnews.cern.ch 1124354683 156 (None) 137.138.37.241 X-Complaints-To: news@sunnews.cern.ch User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050724 Red Hat/1.7.10-1.1.3.1.SL3 X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:4157 Date: 2005-08-18T10:44:43+02:00 List-Id: Jeffrey R. Carter wrote: > Ada has had exceptions, well integrated with the rest of the language, > since Ada 80. Ada's terminology is that exceptions are raised and > handled. OK, but the question is not about terminology, really. If you claim that exceptions were "patched" on to the C++ language that did not have them originally, then let's switch the context to other language that has no history issue like this. I don't know the full history of Java, but I suppose that it had exceptions from the very beginning. If not, let's take C#. Whether those languages tried to mimic the syntax from C++ does not matter at all when it comes to discussion how well the mechanism is integrated into the language. Why do you claim that Ada's exceptions are "better integrated into the language than in the languages that throw and catch them"? Note that those other languages can throw regular objects as exceptions, thus enabling polymorphism when they are handled. One could say that *this* is the point of good integration and that Ada's exceptions are a conceptual patch that did not integrate with the rest of the object model, leading to two separate spaces of language entities instead of only one. Note that I'm learning Ada and I'm likely to misunderstand things. But I'm curious about your way of reasoning and I want to better understand the differences between languages (and that's why I'm provoking you with the above inverted claim ;) ). -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/