Skip to content

Instantly share code, notes, and snippets.

@gradha
Created January 21, 2013 23:03
Show Gist options
  • Save gradha/4590343 to your computer and use it in GitHub Desktop.
Save gradha/4590343 to your computer and use it in GitHub Desktop.
What echos do you get?
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