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,1592759aa83d0d45 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-27 11:41:19 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: Re: Suggestion for Ada 200x - Interface inheritance Date: 27 May 2003 11:41:18 -0700 Organization: http://groups.google.com/ Message-ID: <5ad0dd8a.0305271041.25ca7120@posting.google.com> References: <0Pxza.699607$OV.652508@rwcrnsc54> <5ad0dd8a.0305240435.337d9373@posting.google.com> <5ad0dd8a.0305250612.ec54c23@posting.google.com> <3ED1039F.7010001@spam.com> <719Aa.14547$fT5.3595@nwrdny01.gnilink.net> <5ad0dd8a.0305252353.44adf560@posting.google.com> NNTP-Posting-Host: 62.111.211.178 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1054060878 25127 127.0.0.1 (27 May 2003 18:41:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 27 May 2003 18:41:18 GMT Xref: archiver1.google.com comp.lang.ada:37851 Date: 2003-05-27T18:41:18+00:00 List-Id: Hyman Rosen wrote in message news:... > Wojtek Narczynski wrote: > > Why? Because it is a lot of typing? > > Because, as Wes demonstrated with a real life example, > 'throws' clauses force the entanglement of classes that > couldn't care less about the exceptions which are passing > through them. Not the least of problems this causes is the > implied coupling of classes that are in fact completely > disjoint. But the situation where you cannot rely on the compiler to check wether you did not forget to put an exception handler in isn't good either. Maybe there is some middle ground, like declaring on package level which exceptions should be allowed to go through, and package level exception handlers? Regards, Wojtek