From: Paul Brannan Date: 2003-07-17T04:25:57+09:00 Subject: Re: Other languages' features in Ruby On Thu, Jul 17, 2003 at 02:30:09AM +0900, Martin DeMello wrote: > It seems to me that that could be done at any point, without 'breaking' > anything (your code will still run; it'll just spit out warnings). What > are the cons? This would annoy me: [pbrannan@zaphod borg]$ ruby -w `which irb` /usr/local/lib/ruby/1.6/irb/context.rb:129: warning: method redefined; discarding old irb_name /usr/local/lib/ruby/1.6/irb/context.rb:200: warning: method redefined; discarding old math_mode= /usr/local/lib/ruby/1.6/irb/context.rb:214: warning: method redefined; discarding old use_readline= /usr/local/lib/ruby/1.6/irb/context.rb:201: warning: instance variable @math_mode not initialized /usr/local/lib/ruby/1.6/irb/context.rb:171: warning: instance variable @use_tracer not initialized irb(main):001:0> but perhaps having -w be default would convince the author to fix the code that caused the warnings. Paul