I would expect this code enforce3.d --- import std.exception;
void main () { int i = int.min; enforce (i > 0); } --- to throw an "Enforcement failed" exception, but it doesn't: $ dmd enforce3.d $ ./enforce3 [nothing]
kdevel via Digitalmars-d-learn Sat, 27 Jan 2018 06:16:19 -0800
I would expect this code enforce3.d --- import std.exception;
void main () { int i = int.min; enforce (i > 0); } --- to throw an "Enforcement failed" exception, but it doesn't: $ dmd enforce3.d $ ./enforce3 [nothing]