LoginSignup
2
2

More than 5 years have passed since last update.

今日見つけた 1.8.7 と 1.9.3 の非互換性

Posted at
def foo(*args)
  args
end

p foo:bar

これを Ruby 1.8.7 と Ruby 1.9.3 で実行したらこうなるよ。

$ RBENV_VERSION=ree-1.8.7-2012.02 ruby foo.rb
[:bar]
$ RBENV_VERSION=1.9.3-p392 ruby foo.rb
foo.rb:5:in `<main>': undefined local variable or method `bar' for main:Object (NameError)
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2