From: Mike Stephens Date: 2011-01-18T16:47:11+09:00 Subject: Re: Calling by Reference - Two Questions Interesting. I'm trying to see the pattern here. Ruby doesn't change arr's object if it is refering to elements already present. However (I can only test this in tryruby at this moment) it does change the object and therefore lose the change if I do: def myswapx(arr) arr[2] = 3 end So what's the rule? -- Posted via http://www.ruby-forum.com/.