From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Exception types?
Date: 1998/06/18
Date: 1998-06-18T00:00:00+00:00 [thread overview]
Message-ID: <m3ra0mfevl.fsf@mheaney.ni.net> (raw)
In-Reply-To: 6macfi$hm6$1@platane.wanadoo.fr
"Jean-Pierre Rosen" <rosen.adalog@wanadoo.fr> writes:
> Therefore it is clear that *catching* an exception can only be done with
> statically defined exception names. Therefore, the only remaining
> interesting thing that could be done with "exception variables" would be
> raising. But this is now available with the package Ada.Exceptions.
> Therefore, there is no need to add these features to the language.
True, but you gotta admit the syntax for raising an exception with a
message attached is a bit heavy:
if <I/O failed> then
Raise_Exception (IO_Error'Identity, "CRC check failed");
end if;
It just seems hipper to be able to say
if <I/O Failed> then
raise IO_Error ("CRC check failed");
end if;
I'm sure the language design team considered things like this, and am
equally sure they had good reasons to reject it. Nice to fancy, though,
huh?
next prev parent reply other threads:[~1998-06-18 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-08 0:00 Exception types? Brian Rogoff
1998-06-08 0:00 ` Matthew Heaney
1998-06-09 0:00 ` Brian Rogoff
1998-06-15 0:00 ` Mats Weber
1998-06-15 0:00 ` Brian Rogoff
1998-06-21 0:00 ` Robert Dewar
1998-06-21 0:00 ` Robert Dewar
1998-06-15 0:00 ` Corey Ashford
[not found] ` <3586FFC0.5FEC1CBC@fiu.edu>
1998-06-17 0:00 ` Jean-Pierre Rosen
1998-06-18 0:00 ` Matthew Heaney [this message]
1998-06-19 0:00 ` Jean-Pierre Rosen
1998-06-10 0:00 ` Michel Gauthier
1998-06-11 0:00 ` Brian Rogoff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox