Linked by Bjorn Raupach on Thu 17th Jul 2008 06:01 UTC
Thread beginning with comment 323476
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[3]: Never programmed in Java before...
by FunkyELF on Thu 17th Jul 2008 18:26
in reply to "RE[2]: Never programmed in Java before..."
With C++ you'd just pass multiple values by reference, rather than muck about trying to "return" multiple values.
Then there is no "contract" in the function prototype. It is nice to know by looking at the arguments what can be changed and what can't be changed. You wind up looking at the code to see what is really going on, or actually reading the documentation which nobody wants to do.
Pointers are an ugly hack. The output variable is an input to the function?
RE[4]: Never programmed in Java before...
by ValiSystem on Thu 17th Jul 2008 18:54
in reply to "RE[3]: Never programmed in Java before..."







Member since:
2005-07-06
With C++ you'd just pass multiple values by reference, rather than muck about trying to "return" multiple values.