From: Austin Ziegler Date: 2007-01-29T09:15:41+09:00 Subject: Re: pass by reference? On 1/28/07, Grant Hutchins wrote: > On Jan 27, 5:34 am, Wolfgang N�dasi-Donner > wrote: > > >>>>> Code >>>>> > > > > def modifying(a_param) > > a_param = "hi" > > end > > > > def modifying2(a_param=a_value) > > a_param = "hi" > > end > > In these two methods, the = sign is an assignment, which changes the > memory location of the lvalue to point to the object of the rvalue. When talking about Ruby variables, it is ALWAYS incorrect to refer to a "memory location." It's not a concept that has any useful meaning in Ruby. Ever. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca