From: Austin Ziegler Date: 2007-01-28T03:29:47+09:00 Subject: Re: pass by reference? On 1/26/07, Vincent Fourmond wrote: > Andy Koch wrote: > > Hello, > > > > Is there a way to pass variables by reference into function. > > > > I have large string to pass and the pass by value seems to be eating up > > too much memory. > > You don't actually need to do anything: everything in ruby is passed > by reference, (excepted integers, symbols, nil, false and true - am I > missing one ?) Those are still passed by reference. It just so happens that they are unique and immutable in the system, so it looks a lot like pass-by-value. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca