Subject: Re: [htdig3-dev] Compression version check
From: Torsten Neuer (firstname.lastname@example.org)
Date: Wed Dec 15 1999 - 02:08:45 PST
> 3.Don't use exceptions.
> Exceptions are another C++ feature which is not very widely
> implemented, and as such, their use is not portable C++ code. Don't
> use them. Unfortunately, there is no good workaround that produces
> similar functionality.
To add one more point of criticism: There is no complete set of
exceptions in the C++ standard library nor is there a documentation on
to write portable exceptions, reuse them or inherit them in a portable
(to have an idea what I mean with that, see the Ada95 documentation ;-).
You can, however, work around that using signals and assertions.
have the benefit of not producing code in production versions, signals
not as useable as exceptions, but can be used to trap several conditions
(however, you have to keep track of the current state of the application
if you want to have exception-like functionality). I'm not quite sure
about the behaviour of C++ destructors in signal handlers though -
be similar to goto, which is dangerous.
-- InWise - Wirtschaftlich-Wissenschaftlicher Internet Service GmbH Waldhofstraße 14 Tel: +49-4101-403605 D-25474 Ellerbek Fax: +49-4101-403606 E-Mail: email@example.com Internet: http://www.inwise.de
------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to firstname.lastname@example.org You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Wed Dec 15 1999 - 02:23:50 PST