From: "David A. Black" Date: 2004-02-23T08:12:51+09:00 Subject: Re: A way to "require 'warnings'" Hi -- On Mon, 23 Feb 2004, Jason Creighton wrote: > On Sat, 21 Feb 2004 09:31:11 +0900, > Joel VanderWerf wrote: > > > Jason Creighton wrote: > > > It would be nice if there was a "warnings.rb" file in the standard > > > distribution that contained: > > > > > > $VERBOSE = true > > > > > > ...so you could say > > > > > > require 'warnings' > > > > > > in a script, which, IMHO, reads a little better than "$VERBOSE = true" > > > > > > What do you think? > > > > Makes sense. Or it could be 'ant.rb' instead of 'warnings.rb' so that > > you could say > > > > $ ruby -rant -e 'p Math.cos 0' > > -e:1: warning: parenthesize argument(s) for future version > > 1.0 > > Oh! Neat idea! We could also have 'ave.rb' as an alias. :-) And 'emonstrate.rb' :-) David -- David A. Black dblack@wobblini.net