Subject: Re: [htdig3-dev] Compression version check
From: Torsten Neuer (tneuer@inwise.de)
Date: Wed Dec 15 1999 - 02:08:45 PST
bosc@ceic.com wrote:
>
> 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
predefined
exceptions in the C++ standard library nor is there a documentation on
how
to write portable exceptions, reuse them or inherit them in a portable
way
(to have an idea what I mean with that, see the Ada95 documentation ;-).
You can, however, work around that using signals and assertions.
Assertions
have the benefit of not producing code in production versions, signals
are
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 -
should
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: info@inwise.de Internet: http://www.inwise.de------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev-unsubscribe@htdig.org You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Wed Dec 15 1999 - 02:23:50 PST