Skip to content

Instantly share code, notes, and snippets.

@shingara
Created January 24, 2013 10:57
Show Gist options
  • Save shingara/4620006 to your computer and use it in GitHub Desktop.
Save shingara/4620006 to your computer and use it in GitHub Desktop.
def hello(*args)
puts args.count
end
hello(*(1..100_000))
hello(*(1..130_000))
hello(*(1..131_000))
# all call raise a stack level too deep
hello(*(1..131_100))
hello(*(1..131_200))
hello(*(1..131_500))
hello(*(1..132_000))
hello(*(1..133_000))
hello(*(1..135_000))
hello(*(1..140_000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment