comp.lang.ada
 help / color / mirror / Atom feed
From: "John W. Kennedy" <jwkenne@attglobal.net>
Subject: Re: Ada Versus PL/I - The debate continues
Date: Tue, 18 Mar 2003 01:49:30 GMT
Date: 2003-03-18T01:49:30+00:00	[thread overview]
Message-ID: <KWuda.121919$b8.17742790@news4.srv.hcvlny.cv.net> (raw)
In-Reply-To: <3E764F5F.4A025D83@yahoo.com>

Peter Flass wrote:
> "John W. Kennedy" wrote:
>>>Error recovery in Ada works quite well, thank you.

>>Robin believes that it is a _good_ thing that PL/I allows the run-time
>>ON statement to alter the currently-assigned error recovery, and that
>>PL/I allows return to point of error, and will not be convinced that
>>both of these were excluded from Ada (and every other language I know of
>>with error handling) precisely because experience with PL/I was unfortunate.

> I disagree vehemently.  They were excluded because they were difficult
> to implement.

If you want to accuse the authors of the "Ada '83 Rationale" of lying, 
do it to their faces and leave me out of it.

> Java
> (I believe) with its "try/catch" has effectively tried to re-introduce
> this.  Any other type of error handling is deficient.

Java's try/catch is (as far as this goes) no different from C++'s 
try/catch.  Exception handlers are based on the call stack, with no 
ability to arbitrarily switch from one handler to another at run time, 
and at least one block (the "try" block) must be terminated.  Java's 
only significant addition is the optional "finally" block (a block that 
is executed -- normally resource-release code -- after either successful 
or unsuccessful execution).

-- 
John W. Kennedy
"Only an idiot fights a war on two fronts.  Only
the heir to the throne of the kingdom of idiots
would fight a war on twelve fronts."
   -- "Babylon 5"




  parent reply	other threads:[~2003-03-18  1:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Movca.664$dE2.1469@newsfeeds.bigpond.com>
2003-03-16  4:02 ` Ada Versus PL/I - The debate continues Richard Riehle
2003-03-16 21:00   ` John W. Kennedy
2003-03-17 22:44     ` Peter Flass
2003-03-17 23:02       ` Hyman Rosen
2003-03-18  1:49       ` John W. Kennedy [this message]
2003-04-01  2:36         ` Robert I. Eachus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox