14 lines
276 B
D
14 lines
276 B
D
|
|
import std.stdio;
|
||
|
|
|
||
|
|
void main(string[] args) {
|
||
|
|
scope(exit)
|
||
|
|
writeln("Gone");
|
||
|
|
|
||
|
|
if (args[1] == "throw")
|
||
|
|
throw new Exception("message");
|
||
|
|
|
||
|
|
scope(exit)
|
||
|
|
writeln("Gone, but we passed the first" ~
|
||
|
|
" chance to throw an exception.");
|
||
|
|
}
|