From: Gavin Sinclair Date: 2002-10-12T12:15:22+09:00 Subject: Re: Different Behavior of Class Variables w.r.t ||= From: "Harry Ohlsen" > On Sat, 12 Oct 2002 05:24, Gavin Sinclair wrote: > > Funny, in every language I know, warnings are off by default, and then > > people have to constantly advise other people to turn them on. > > > > I think Ruby should have them on by default, and use a command-line switch > > to suppress them. > > I like that idea! It would be interesting to see how many messages would > appear on the list if that change was made without mentioning it in the next > version that's released :-). > > I'm going to go and replace my ruby executable with a script that calls the > original with "-w", to see whether I start picking up problems in code I've > already written !! > > H. As James pointed out, you can use the RUBYOPT environment variable. Gavin