From: matz@... (Yukihiro Matsumoto) Date: 2001-01-18T03:59:47+09:00 Subject: [ruby-talk:9467] Re: Newbie question: call-by-reference Hi, In message "[ruby-talk:9466] Newbie question: call-by-reference" on 01/01/18, Marc Casaldaliga writes: |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. How about wrapping the value by an array? def incr(i) i[0]+=1 end a = [0] incr(a) Little bit ugly, but call by reference is conceptually ugly I believe. ;-) matz.