Skip to content

Instantly share code, notes, and snippets.

@achim
Created December 1, 2013 12:48
Show Gist options
  • Save achim/7733214 to your computer and use it in GitHub Desktop.
Save achim/7733214 to your computer and use it in GitHub Desktop.
iterator foo(): int {.closure.} =
yield 0
for x in foo(): echo(x)
# output:
#
# ~/Dev $ ~/Dev/Nimrod/bin/nimrod c test
# config/nimrod.cfg(36, 2) Hint: added path: '/Users/achim/.babel/pkgs/babel-0.1.0' [Path]
# config/nimrod.cfg(36, 2) Hint: added path: '/Users/achim/.babel/pkgs/' [Path]
# Hint: used config file '/Users/achim/Dev/Nimrod/config/nimrod.cfg' [Conf]
# Hint: system [Processing]
# Hint: test [Processing]
# compilation artifact(-992, 645) Error: internal error: expr(196 (invalid data!)); unknown node kind
# No stack traceback available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment