exceptions vs error codes

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 13 03:33:52 PDT 2016


On Wednesday, 13 July 2016 at 10:14:41 UTC, Max Samukha wrote:
> Undefined implies there *may* be something to save.

but you have no way to know what.

> 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.

that's why they aren't portable. and written by bad programmers, 
as there is never any need for "emergency save" in good designed 
progam: it keeps working logs and can replay everything user did 
if it crashed. sadly, most programmers aren't trained to write 
their software this way.


More information about the Digitalmars-d mailing list