On Tue, 11 Jun 2013 14:38:51 -0400, Andrei Alexandrescu <seewebsiteforem...@erdani.org> wrote:

On 6/11/13 1:01 PM, Lars T. Kyllingstad wrote:
As in a module destructor? Isn't it better to let the error pass
silently rather than throwing an exception that can't be caught?

It will not be caught but will cause the entire program to print a diagnostic and exit with a nonzero error code, which is useful.

How exactly is this useful? What if you returned a different error code and you prefer that to come through?

Also note, if stderr isn't working, "printing" anything diagnostic will be gone (I wonder what happens in that case?)

-Steve

Reply via email to