From: Justin Collins Date: 2008-12-29T05:48:44+09:00 Subject: Re: Ruby gives some warning Albert Schlef wrote: > (I'm using Ruby 1.8.6.) > > The following expression... > > rand(rand 3) > > ...makes ruby emit a warning: "warning: parenthesize argument(s) for > future version" > > It seems that I have to write is as "rand(rand(3))". Why? What potential > problem could there be in "rand(rand 3)" ? > This does not happen in 1.8.7 or 1.9.1, so I assume they have found a way around this. Even "rand rand 3" works. -Justin