comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Problem w/ Win NT Apex or just me?
Date: 1998/10/18
Date: 1998-10-18T00:00:00+00:00	[thread overview]
Message-ID: <aWTe2rs#9GA.49@samson.airnet.net> (raw)
In-Reply-To: 36290663.18049121@SantaClara01.news.InterNex.Net


Tom Moran wrote in message
<36290663.18049121@SantaClara01.news.InterNex.Net>...
>> exception
>>      when E: others =>
>>         Ada.Exceptions.Raise_Exception
>>            (E => Ada.Exceptions.Exception_Identity (E),
>>            Message => "raised when attempting to open     ...
>Are you sure the open (actually Create) is the only possible source of
>exceptions here?

No, of course not.  The exception handled (and re-raised) here can be from
Open (with any other exception except Name_Error), from Create, Put_Line or
Close.

The purpose here was not to completely re-wrire his program -- so I kept its
basic structure (including its structural flaws), and simply illustrated how
to be a little more elegant with informing of exceptions.

"Real" code I write would get a hard-copy desk check, rather than just
looking at the code on the screen -- which is what happened here.








  reply	other threads:[~1998-10-18  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-16  0:00 Problem w/ Win NT Apex or just me? Roga Danar
1998-10-16  0:00 ` Sune Falck
1998-10-16  0:00   ` Roga Danar
1998-10-18  0:00     ` Dmitriy Anisimkov
1998-10-16  0:00   ` Roga Danar
1998-10-17  0:00 ` David C. Hoos, Sr.
1998-10-17  0:00   ` Tom Moran
1998-10-18  0:00     ` David C. Hoos, Sr. [this message]
1998-10-19  0:00   ` Roga Danar
replies disabled

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