From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Common exception handling
Date: Wed, 27 Aug 2008 11:20:12 +0200
Date: 2008-08-27T11:20:12+02:00 [thread overview]
Message-ID: <48b51c4c$0$20706$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: <62aa47f1-5712-4455-8f2d-8fbc65d12871@25g2000hsx.googlegroups.com>
Maciej Sobczak schrieb:
> On 26 Sie, 21:14, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
> wrote:
>
>> I wished to have ranges of exceptions
>
> Hierarchies, not ranges.
>
> The difference is that entities in the hierarchy can be not only
> extended but also specialized and that would nicely fit in the OO part
> of the language.
Meanwhile, using a nested programming language,
we can do
type Throwable is tagged private;
...
procedure Outer is
Fail: exception;
package OO_Exception is
type Relevant_Info is new Throwable with
-- everything needed to known what
-- has happened deep down the call chain
record
...
end record;
procedure Prim_Op(Recording: Relevant_Info);
end OO_Exception;
package body OO_Exception is separate;
use OO_Exception;
procedure Inner is
begin
...
end Inner;
Scrap_Book: Relevant_Info;
begin
Inner;
exception
when Fail =>
Prim_Op(Scrap_Book);
end Outer;
--
Georg Bauhaus
Y A Time Drain http://www.9toX.de
next prev parent reply other threads:[~2008-08-27 9:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-26 12:17 Common exception handling shaunpatterson
2008-08-26 12:37 ` Ludovic Brenta
2008-08-26 12:39 ` Martin
2008-08-26 12:48 ` Ludovic Brenta
2008-08-26 12:58 ` Martin
2008-08-26 13:47 ` shaunpatterson
2008-08-26 14:43 ` Adam Beneschan
2008-08-26 15:10 ` Dmitry A. Kazakov
2008-08-26 16:49 ` Adam Beneschan
2008-08-26 19:14 ` Dmitry A. Kazakov
2008-08-26 20:22 ` Maciej Sobczak
2008-08-27 8:16 ` Dmitry A. Kazakov
2008-08-27 9:20 ` Georg Bauhaus [this message]
2008-08-29 8:32 ` Martin
2008-08-29 15:31 ` Adam Beneschan
2008-09-10 22:51 ` Martin
2008-09-11 14:57 ` Adam Beneschan
2008-08-26 15:18 ` Jean-Pierre Rosen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox