R
Richard Heathfield
Dietmar Schindler said:
Yes, the "by value" part is always true and therefore dispensable, but what
then remains is "pass a pointer" (which is meaningful because a pointer
/is/ a value - the fact that such a value can be stored in an object is
irrelevant), or "pass a variable" (which is not meaningful). So I stand by
my original statement.
The first is no more or less meaningful than the second. You correctly
stated "The *only* thing you can pass to a function via the parameter
mechanism is a value...", so the "value" part is dispensable, but not
meaningless.
Yes, the "by value" part is always true and therefore dispensable, but what
then remains is "pass a pointer" (which is meaningful because a pointer
/is/ a value - the fact that such a value can be stored in an object is
irrelevant), or "pass a variable" (which is not meaningful). So I stand by
my original statement.