Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下のコードは 0 を返します
v = 0 obj.foo('',0) printf("v : %d \n", WIN32OLE::ARGV[1])
実際には、参照によって別の値を返す必要があります。
たとえば、Python では次のように動作します。
v = obj.foo('') print('v : %d' % v)
Rubyで同じものを作る方法はまだわかりません。