Re: Ada exception block does NOT work?
- From: Maciej Sobczak <no.spam@xxxxxxxxxxx>
- Date: Thu, 18 Aug 2005 10:44:43 +0200
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/ .
- Follow-Ups:
- Re: Ada exception block does NOT work?
- From: Robert A Duff
- Re: Ada exception block does NOT work?
- From: Robert A Duff
- Re: Ada exception block does NOT work?
- From: Martin Krischik
- Re: Ada exception block does NOT work?
- From: Jeffrey Carter
- Re: Ada exception block does NOT work?
- From: Jean-Pierre Rosen
- Re: Ada exception block does NOT work?
- References:
- Ada exception block does NOT work?
- From: bubble
- Re: Ada exception block does NOT work?
- From: Georg Bauhaus
- Re: Ada exception block does NOT work?
- From: bubble
- Re: Ada exception block does NOT work?
- From: Jeffrey R. Carter
- Re: Ada exception block does NOT work?
- From: Maciej Sobczak
- Re: Ada exception block does NOT work?
- From: Jeffrey R. Carter
- Ada exception block does NOT work?
- Prev by Date: Re: Programming:Ada
- Next by Date: OT: What was the first programming language to use 'generics'?...
- Previous by thread: Re: Ada exception block does NOT work?
- Next by thread: Re: Ada exception block does NOT work?
- Index(es):
Relevant Pages
|