Originally posted by Muhammad Ali Amin: I want to pass permitive datatypes by Reference not by value, how can i? I don't want to use any wrapper class. is there any specific operator that accomplish this?
You don't actually want that since there is an underlying requirement defect in that statement (I won't go into it any further). What you might want (speculation) is some observable change after invocation of some operation with some given data.
Some people do this with "setters" and "getters" (I use those terms to identify with the reader but resent their existence):
You'll note the subtle difference between the two examples. Some would argue that the latter is "more OO". Whatever the case, I think you should be able to solve whatever your problem really is. [ August 26, 2006: Message edited by: Tony Morris ]
Or to put it in cruder terms, passing variables by reference allows you to write methods that have side-effects. This should normally be avoided as it leads to programs that are hard to test and debug.