exceptions vs error codes
Max Samukha via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 13 03:14:41 PDT 2016
On Wednesday, 13 July 2016 at 09:04:20 UTC, ketmar wrote:
> On Wednesday, 13 July 2016 at 07:14:04 UTC, Max Samukha wrote:
>> Undefined does not imply corrupt.
>
> undefined means "undefined". there is nothing more to save,
> nothing more to do, as you can't rely on a single bit. this
> is... definition of undefined.
>
> relying on defined state with undefined behavior is not only
> dangerous, it is plainly invalid.
Not true. Undefined implies there *may* be something to save.
That is why programs like Steinberg Cubase do not simply bail out
on failure, but give users a chance to save a copy of their work.
In my experience with Cubase, state needed for recovery survived
the failure more often than not.
More information about the Digitalmars-d
mailing list