comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Help understanding the benefits of Ada's exception model
Date: Thu, 26 Jun 2014 19:55:27 +0300
Date: 2014-06-26T19:55:27+03:00	[thread overview]
Message-ID: <c131jsFcn4mU1@mid.individual.net> (raw)
In-Reply-To: <53ac3b56$0$6654$9b4e6d93@newsspool3.arcor-online.net>

On 14-06-26 18:25 , G.B. wrote:
> On 26.06.14 16:28, Patrick wrote:
>> Sorry for answering my own post. I think I have not used the terms
>> unchecked exception and check exceptions properly.  Better terms would
>> be handling exceptions and handling error codes.
>>
> Right, and the usual answer is that _if_ you want non-local
> transfer of control, then checking error codes just won't do.
> You'd be using something like setjmp/longjmp in C.
> the alternative is to handle error codes all the way up the
> call chain. The resulting code is more spaghetti-like and it
> will mix both return values and special return values in
> the same syntactic structure.
> 
> I can't think of a language in use today that does not have
> either exception handling, or else some way to check, at compile
> time, that none can occur.

Fortran?

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
      .      @       .


  parent reply	other threads:[~2014-06-26 16:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26 11:42 Help understanding the benefits of Ada's exception model Patrick
2014-06-26 14:28 ` Patrick
2014-06-26 15:22   ` Dan'l Miller
2014-06-26 15:25   ` G.B.
2014-06-26 15:52     ` Patrick
2014-06-26 16:55     ` Niklas Holsti [this message]
2014-06-26 23:27       ` Georg Bauhaus
2014-06-26 16:08   ` Jeffrey Carter
replies disabled

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