Linked by Bjorn Raupach on Thu 17th Jul 2008 06:01 UTC
Thread beginning with comment 323494
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[5]: Never programmed in Java before...
by FunkyELF on Thu 17th Jul 2008 19:05
in reply to "RE[4]: Never programmed in Java before..."
RE[6]: Never programmed in Java before...
by Vanders on Thu 17th Jul 2008 23:11
in reply to "RE[5]: Never programmed in Java before..."
Er, not really. const is a standard feature in C++ for declaring, well, constants. Same as it is in C, and it's been that way forever. It's hardly a hack: certainly no more than inventing silly ways to return multiple values from a function.
Also, who said anything about pointers here? C++ supports proper bona fide pass by reference.





Member since:
2006-02-28
C++ allows you to declare constant references and pointers, just for this purpose.