Quote:Original post by Conner McCloudi'm not quite sure if thats nit-picking or more of a simple correction ...Quote:Original post by Anonymous PosterQuote:Original post by Conner McCloud
For all practical purposes, that's the method Java uses*. Personally, I don't like it, for readability purposes. I dislike functions that modify its arguments, so I prefer to assume they won't unless explicitly told otherwise. Defaulting to pass-by-value fits this scheme better.
CM
*Yes, yes, its passing a reference by value. Blah blah blah, either way you're passing a reference. No nit-picking.
Actually Java passes a pointer by value, not a reference. That's why you can call a function with null as parameter.
You're nit-picking. A pointer is a reference that doesn't neccessarily reference anything. Now, if we could please stop playing word games?
CM
:)