From: "Einar Magnús Boson" Date: 2008-11-27T12:53:04+09:00 Subject: Re: How to use a passing argument(returned argument)? On 27.11.2008, at 03:06 , Lloyd Linklater wrote: >> a = 22 >> b = 33 >> swap(ref{:a}, ref{:b}) >> p a # => 33 >> p b # => 22 > > > instead of swap(ref{:a}, ref{:b}) > > why not a, b = b, a > -- > Posted via http://www.ruby-forum.com/. > Because his question was about references, swap was just an example. einarmagnus