From: "Jesús Gabriel y Galán" Date: 2011-01-19T03:11:55+09:00 Subject: Re: Calling by Reference - Two Questions On Tue, Jan 18, 2011 at 7:01 PM, Mike Stephens wrote: >>Robert Klemme wrote >> You cannot assign to self! >> Calling self#[]= is something different - this is actually a method >> that must be implemented for the object that self points to. > > Robert, can you expand on that? > > My example has an object of type Array. Array has a method = > implemented, so in what way is []= different to = ? One works on self; > the other raises an error. = is not a method of object, is the assignment operator. Modifies which object is referenced be the variable in the left hand side. Jesus.