comp.lang.ada
 help / color / mirror / Atom feed
* question on exceptions
@ 1996-11-02  0:00 Michiel Perdeck
  1996-11-03  0:00 ` Laurent Guerby
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Michiel Perdeck @ 1996-11-02  0:00 UTC (permalink / raw)



Intro:
   This is one of several questions on Ada95 after reading the "Ada
guide for C/C++ programmers" from Simon Johnston. I am a fan of Ada
and I think that much (if not most) C/C++ programs should have been
written in Ada. I have, however, not been able to use Ada as much as I
would have liked. I have split my questions over a few messages so
that reactions may be given to individual questions.

Questions:
    Unlike an exception in C++, an Ada exception cannot carry any
extra information besides it's own name. In C++ you can have an
exception of a certain class e.g. SQL_Exception, and then put a
message in an exception when it occurs. The exception handler can then
use that information to write on a log-file or the like. It seems to
me that this is a more flexible concept (exceptions as objects) than
that of Ada (exceptions as scalar types).
I hope you can convince me that I'm wrong! What do you think?

Regards,
Michiel Perdeck
Michiel Perdeck
CMG AT Finance, Amstelveen, Netherlands
michiel.perdeck@cmg.nl
michiel.perdeck@tip.nl





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~1996-11-09  0:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-02  0:00 question on exceptions Michiel Perdeck
1996-11-03  0:00 ` Laurent Guerby
1996-11-04  0:00   ` Do-While Jones
1996-11-06  0:00     ` Robert A Duff
1996-11-07  0:00       ` Tucker Taft
1996-11-08  0:00         ` Robert A Duff
1996-11-08  0:00       ` Robert Dewar
1996-11-09  0:00         ` Tucker Taft
     [not found]           ` <E0Mr58.D00@world.std.com>
1996-11-09  0:00             ` Robert Dewar
1996-11-03  0:00 ` Robert A Duff
1996-11-04  0:00 ` Michel Gauthier

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