From: "Gennady F. Bystritsky" Date: 2002-11-08T06:54:29+09:00 Subject: Re: v.polar = rho, theta ----- Original Message ----- From: "Paul Brannan" To: "ruby-talk ML" Sent: Thursday, November 07, 2002 1:27 PM Subject: Re: v.polar = rho, theta > On Fri, Nov 08, 2002 at 06:09:17AM +0900, Hans Fugal wrote: > > But it struck me that defining polar=(rho,theta) would be more > > ruby-like, and I expected to call it like so: v.polar = 1, 3.14 > > That doesn't work, though. > > Is there a reason why Ruby doesn't treat this case like like it treats > multiple assignment to a variable? It does treat it the same way as multiple assignment to a variable - it passes a single array argument. However initial example defined polar= as accepting 2 arguments. That's why it did not work. Gennady. > > Paul > > > >