From: Brian Candler Date: 2008-12-18T02:08:38+09:00 Subject: Re: Ruby 1.9.0 crash on Kubuntu Hardy Heron Bug Free wrote: > Hi, > > Ruby 1.9.0 crashes on the following code: > ====================== > class Foo > def Foo.get > return true if defined? @@x && @@x <= 0 > end > end > Foo.get > ====================== > > This is the version: > clay:~/tests/ruby/bugs$ ruby1.9 -v > ruby 1.9.0 (2007-12-25 revision 14709) [i486-linux] Your program works fine for me on 1.9.1-preview2, under Ubuntu Hardy. $ ruby19 crash.rb $ ruby19 -v ruby 1.9.1 (2008-12-01 revision 20438) [i686-linux] $ So maybe you just need to upgrade. -- Posted via http://www.ruby-forum.com/.