2011/1/3 Rafał Krupiński <r.krupin...@gmail.com>: > W dniu 03.01.2011 18:45, Michael Giannakopoulos pisze: >> >> Hello to all Apache Commons Developers! >> I wish a happy new year and i hope that all your expectations will come >> true! I would like to propose a new feature in apache commons... Wouldn't >> it >> be great if commons api provided a pointer operator (like ref in C#) so as >> to pass arguments in functions by references (only for primitive types...) >> and these arguments to change values... I would like to hear your thoughts >> on this! Thanks for your time! >> > > Do you mean something like > class IntRef{ > private int value; > public int getValue()... > public void setValue(int)... > } > > ?
He mentions "ref" in C#, which works something like this: public function foo( ref int a ) { a = 42; } public function bar() { int b = 0; foo( ref b ); // b == 42 } I don't see how Commons could accomplish this goal. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org