try...catch slooowness?
Rob
rob2970 at yah00.com
Wed Dec 22 12:26:00 PST 2010
Steven Schveighoffer wrote:
> On Tue, 21 Dec 2010 17:25:09 -0500, Rob <rob2970 at yah00.com> wrote:
>
>> Steven Schveighoffer wrote:
>>
>>> An exception is a recoverable error,
>>
>> Not necessarily. At some point, all the handling options could have
>> been tried but all failed in which case there is nothing left to do
>> except for letting something higher up (like the operating system)
>> deal with the situation. In such a case, recovery did not occur if
>> you consider recovery to mean that the program keeps running
>> normally.
>
> In D, unrecoverable errors derive from Error, recoverable ones derive
> from Exception.
>
> By 'recovery' I mean that the program can either continue to run or
> decide proactively to do something different (like print an error and
> exit).
That, decidedly, from common terminology usage industry-wide, is
considered "unrecoverable". "Unrecoverable" doesn't mean crash and burn.
Anything less than the program staying running is indicates something
unrecoverable happened.
More information about the Digitalmars-d
mailing list