Author: Russell Reagan
Date: 17:13:02 07/28/03
Go up one level in this thread
On July 28, 2003 at 19:00:41, Dieter Buerssner wrote: >Gerd, references is enough for me, to avoid C++. In the "old days", when I read >code with a function call, like foo(a), I was sure, that a will be the same >after the function call, than before. With C++, I cannot be sure anymore. If I >want to make a changable by a function call, I use &a in C. All pretty much self >documenting. Not anymore in C++. Why not just make the function take a const reference when you know the function won't modify it? I guess the problem still exists if you are working in a group and someone else writes the function you are to be using. Even so, you could check the function declaration, which I would think a good programmer would do before using a function for the first time.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.