[EMAIL PROTECTED] 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: [EMAIL PROTECTED] Internet: http://www.inwise.de
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.