Skip to content

Instantly share code, notes, and snippets.

@kaeff
Created January 15, 2015 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaeff/31a9b5b8e7f5945ace8c to your computer and use it in GitHub Desktop.
Save kaeff/31a9b5b8e7f5945ace8c to your computer and use it in GitHub Desktop.
Mean time to segfault
➜ ~ crystal eval '3.times { |n| puts n}'
0
1
2
➜ ~ crystal eval '2..3.times { |n| puts n}'
0
1
2
➜ ~ crystal eval '2...times { |n| puts n}'
/usr/local/bin/crystal: line 6: 80376 Segmentation fault: 11 "$INSTALL_DIR/embedded/bin/crystal" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment