Exceptions on Windows being "swallowed"

cartland example at example.com
Wed Nov 27 05:55:00 UTC 2019


On Wednesday, 27 November 2019 at 05:43:33 UTC, Mike Parker wrote:
> On Wednesday, 27 November 2019 at 05:15:10 UTC, cartland wrote:
> *snip*
>
> dmd -m32mscoff -debug -g x.d
>
> And see what happens.

No difference between "dmd -m32mscoff -debug -g x.d" and "dmd 
-m32mscoff x.d"

--------
C:\tmp\x>dmd -m32mscoff -debug -g x.d

C:\tmp\x>x
hello

C:\tmp\x>dmd x.d

C:\tmp\x>x
hello
finally
catch first
done
----------

x.d contents
--------
import std.stdio;
void main() {
     writeln("hello");
     try {
         try {
             throw new Exception("first");
         } finally{
             writeln("finally");
             throw new Exception("second");
         }
     } catch (Exception e) {
         writeln("catch ", e.msg);
     }
     writeln("done");
}
-----------



More information about the Digitalmars-d-learn mailing list