(:title "Technotalk")

  • My tumblog
  • @edham_arief
  • Sabah Blogs

Open Source, Ruby, Ruby On Rails, PHP, CakePHP, Mysql, Linux, PCBSD, Emacs, Ubuntu, CENTOS, ArchLinux, Slackware, Opera, Sabah, Malaysia

Archive
March 2nd, 2012 at 9:51PM
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

#goto#programming#ruby#rubyonrails#developers#hackers#programmers#spaghetticode
Page 1 of 1

Brutal Simplicity theme by Kevin Burg