From: Guillaume Marcais Date: 2003-07-09T23:36:10+09:00 Subject: Re: Array.each On Wed, 2003-07-09 at 06:08, ts wrote: > B> An exception would be better from my point of view though. > > and break old scripts ? Is there a way to voluntary make the warnings errors. For example, a switch on the ruby command line. Something like: % ruby -e '{1 => 1}.each {|i| p i}' -e:1: warning: multiple values for a block parameter (2 for 1) from -e:1 [1, 1] % ruby -W -e '{1 => 1}.each {|i| p i}' WarningError: multiple values for a block parameter (2 for 1) from -e:1 How hard would it be to implement? Guillaume.