Created
January 21, 2013 23:03
-
-
Save gradha/4590343 to your computer and use it in GitHub Desktop.
What echos do you get?
This file contains 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 test1() = | |
raise newException(E_base, "Hey ho") | |
proc tester() = | |
except: echo "2. except block" | |
finally: echo "3. Finally block" | |
echo "1. Pre exception" | |
test1() | |
echo "NaN. Post exception" | |
when isMainModule: | |
tester() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment