Advertisement
Guest User

Untitled

a guest
May 4th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. fun foo b =
  2. let exception Foo
  3. in if b
  4. then (foo (not b)) handle Foo => "caught"
  5. else raise Foo
  6. end
  7.  
  8. exception Bar
  9. fun bar b =
  10. if b
  11. then (bar (not b)) handle bar => "caught"
  12. else raise Bar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement