From: Kazuhiro NISHIYAMA Date: 2000-08-17T06:25:39+09:00 Subject: [ruby-dev:10647] irb bug? irbでエラーメッセージがたまっていく現象が起きました。 引き金となるdefined? method(*arg)はエラーとか起きないはずなんですが。 % irb -v irb 0.6.1(99/09/16) % ruby -v ruby 1.5.5 (2000-08-09) [i586-linux] % irb irb(main):001:0> defined? print(*hoge) nil irb(main):002:0> *nil SyntaxError: compile error undefined local variable or method `hoge' for # (irb):2: Can't assign to nil (irb):2: parse error (irb):2:in `irb_binding' irb(main):003:0> *nil SyntaxError: compile error undefined local variable or method `hoge' for # (irb):2: Can't assign to nil (irb):3: Can't assign to nil (irb):3: parse error (irb):3:in `irb_binding' irb(main):004:0> *nil SyntaxError: compile error undefined local variable or method `hoge' for # (irb):2: Can't assign to nil (irb):3: Can't assign to nil (irb):4: Can't assign to nil (irb):4: parse error (irb):4:in `irb_binding' irb(main):005:0> *nil SyntaxError: compile error undefined local variable or method `hoge' for # (irb):2: Can't assign to nil (irb):3: Can't assign to nil (irb):4: Can't assign to nil (irb):5: Can't assign to nil (irb):5: parse error (irb):5:in `irb_binding' irb(main):006:0> --- ZnZ(ゼット エヌ ゼット) 西山和広(Kazuhiro Nishiyama) mailto:zn@mbf.nifty.com