[comp.lang.c++] Passing by reference when are parameters changed

rae@gpu.utcs.toronto.edu (Reid Ellis) (08/29/90)

One less-than-pleasant method of knowing whether a parmaeter is
going to be changed by a function call is to name the function
appropriately.  e.g.

	getName(string);

versus
	setName(string);

From their names, the latter would probably not change the value
of "string".

Basically, I agree with you.  I miss being able to look at code
and know immediately whether or not a parameter would be modified
by that wonderfule marker, "&".

					Reid
--
Reid Ellis  264 Broadway Avenue, Toronto ON, M4P 1V9               Canada
rae@gpu.utcs.toronto.edu || rae%alias@csri.toronto.edu || +1 416 487 1383