Created
June 25, 2013 16:28
-
-
Save fowlmouth/5859948 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc foo(): int = | |
| return(if true: 1 | |
| else: 0 ) | |
| echo foo() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc zoo : int = | |
| raise newException(E_IO, "foo") | |
| proc foo (): int = | |
| return(try: zoo() | |
| except: 1) | |
| echo foo() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment