Re: A solution for the allocation failures problem
- From: "Malcolm McLean" <regniztar@xxxxxxxxxxxxxx>
- Date: Fri, 8 Feb 2008 22:55:03 -0000
"Ian Collins" <ian-news@xxxxxxxxxxx> wrote in message
As I said before, it's very hard and therefore error prone to writeI'd agree here.
exception safe code with the mechanisms C provides for all of the
reasons it's very hard to use multiple points of return. Square that
when exceptions can escape out of functions.
Exceptions simplify the callee at the expense of more work in the caller. In fact they often make the interfaces too difficult to use.
However if you have a chain of out-of-memory returns you are effectively handcoding the C++ excpetion mechanism, so you lose the syntaxtical conveneience as well.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
.
- Follow-Ups:
- Re: A solution for the allocation failures problem
- From: Ioannis Vranos
- Re: A solution for the allocation failures problem
- References:
- Re: A solution for the allocation failures problem
- From: Ioannis Vranos
- Re: A solution for the allocation failures problem
- From: Richard Heathfield
- Re: A solution for the allocation failures problem
- From: jacob navia
- Re: A solution for the allocation failures problem
- From: Ian Collins
- Re: A solution for the allocation failures problem
- From: Ioannis Vranos
- Re: A solution for the allocation failures problem
- From: Ioannis Vranos
- Re: A solution for the allocation failures problem
- From: Ian Collins
- Re: A solution for the allocation failures problem
- Prev by Date: Re: What does this code do?
- Next by Date: Re: Two questions about a program in C
- Previous by thread: Re: A solution for the allocation failures problem
- Next by thread: Re: A solution for the allocation failures problem
- Index(es):
Relevant Pages
|