Program logic bugs vs input/environmental errors

Johannes Pfau via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 29 01:27:16 PDT 2014


Am Sun, 28 Sep 2014 15:59:45 -0700
schrieb Walter Bright <newshound2 at digitalmars.com>:

> > if the program failed to catch an exception, you're already screwed
> > anyway  
> 
> This is simply not true. One can write utilities with no caught
> exceptions at all, and yet have the program emit user friendly
> messages about "disk full" and stuff like that.

You're always thinking of simple console apps but this is the only place
where the default 'print exception to console' strategy works.

In a daemon which logs to syslog or in a GUI application or a game an
uncaught 'disk full exception' would go completely unnoticed and that's
definitely a bug.


More information about the Digitalmars-d mailing list