RosettaCodeData/Task/Exceptions/Standard-ML/exceptions-3.ml

3 lines
81 B
OCaml
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
val x = f() handle MyException => 22;
val y = f() handle MyDataException x => x;