Tricky code with exceptions

Juan Manuel Cabo juanmanuel.cabo at gmail.com
Thu May 9 18:05:38 PDT 2013


Tested on Linux - Kubuntu 12.04 64bits
       dmd 2.058 -m32
       dmd 2.058 64 bits
       dmd 2.062 -m32
       dmd 2.062
and the output is this for all of the above:

     Loop: 0
     Loop: 1
     Caught
     Loop: 2
     Loop: 3
     Caught
     Loop: 4
     Loop: 5
     Caught

Then, tested on Windows XP SP3 32 bits, dmd 2.062,
and it DIDN'T CRASH. The output is:

     Loop: 0
     Loop: 1
     Caught
     Loop: 2
     Loop: 3

--jm


More information about the Digitalmars-d-learn mailing list