On 6/11/13 3:25 PM, Steven Schveighoffer wrote:
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?

I think that can be very useful.

Andrei

Reply via email to