goto in ruby 1.9
__label__(:loop)
puts “The Ruby core team is playing a joke on us!”
__goto__(:loop)
puts “This line of code is never reached.”
This code works only if you compile ruby 1.9 to support goto statement.
p/s: Got this from the comments - http://kerneltrap.org/node/553/2131
Short URL for this post: http://tmblr.co/ZDcDZyHKzMo-