From: Marc Casaldaliga Date: 2001-01-18T03:37:15+09:00 Subject: [ruby-talk:9466] Newbie question: call-by-reference Hello there, I�m just stuck on this. I�ve been searching the mailing list and found nothing, so it must be too obvious. But indeed, how could I get in a method call a reference to the argument --instead of the value--so I can modify it inside. def incr(i) i+=1 end I guess that�s something rarely needed because in instance methods you always get the self reference to modify the reciever but anyway is it possible to do it? I�ve seen examples where an Array gets modified: def addElement(anArray, number) anArray << number end (again a silly example, but is it possible in general?) Thanks in advance Marc