Exception Safe Programming
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Sun Feb 25 07:32:22 PST 2007
Saaa wrote:
>>>> That's probably because this is a counter-example, not an example
>>>> really: more a (convincing) way to show that scope() is much better than
>>>> try/catch for exception safe programming..
>>> I meant the try statement explanation on
>>> http://www.digitalmars.com/d/statement.html#TryStatement
>> The only example I see there is:
>> ---
>
> : /
> I meant the explanation itself....
Ah, I must have read that 'explanation' as 'example'.
> My question was originally about an example from the exception safe
> programming page.
> But I just mentioned that the try statement explanation(on
> http://www.digitalmars.com/d/statement.html#TryStatement )
> isn't the most comprehensible.(for me that is:)
Hmm, yes. That section doesn't seem to explain what exceptions *are*,
does it? It seems to assume you already know that.
http://www.digitalmars.com/d/errors.html is a bit better, but I'm not
sure how clear it is to someone entirely unfamiliar with the concept of
exception handling (e.g. someone coming from a purely C background).
More information about the Digitalmars-d-learn
mailing list