From: Brian Candler Date: 2003-07-09T19:05:04+09:00 Subject: Re: Array.each On Wed, Jul 09, 2003 at 06:47:45PM +0900, ts wrote: > B> array or vice versa. I'd be much happier if you had to do > B> { |*i| ... } > B> if you wanted multiple arguments amalgamated into an array. > > I don't understand : do you want something like this ? > > svg% ruby -ve '{1 => 1}.each {|i| p i}' > ruby 1.8.0 (2003-07-03) [i686-linux] > -e:1: warning: multiple values for a block parameter (2 for 1) > from -e:1 I guess that would do it :-) As long as I remembered to set -w ... An exception would be better from my point of view though. I'm doing a lot of things over DRb; exceptions get nicely forwarded to the client side, but warnings to stderr stay at the server side and I have to remember to look in different log files for those. Also, if I want my code to be warning-free, unit testing doesn't really help me catch those cases (i.e. even if the code produces the correct answers, the warning says I should have written |*i| rather than |i| ) Regards, Brian.