They are just like out parameters that have input value as well. public class C { public int foo(ref int bar) { bar++; return 3; } }
p C.new.foo(1) # => [3, 2] Tomas From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of James Thompson Sent: Friday, October 16, 2009 1:14 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Method parameter modifiers: out and ref I am trying to work with a .NET lib that uses ref modifiers on some method params and am not sure how to work with them from Ruby. I know with out modifiers that those parameters become part of the return values, but what can I do with ref parameters from Ruby? James Thompson Plain Programs New Orleans, LA P: (502) 619.0353 E: ja...@plainprograms.com<mailto:ja...@plainprograms.com> W: www.plainprograms.com<http://www.plainprograms.com>
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core