reddit discussion on replacing Python in 0install

Steven Schveighoffer schveiguy at yahoo.com
Tue Jun 11 12:25:08 PDT 2013


On Tue, 11 Jun 2013 14:38:51 -0400, Andrei Alexandrescu  
<SeeWebsiteForEmail at 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


More information about the Digitalmars-d mailing list