Liste des Groupes | Revenir à cl c |
Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:[...]
I'm mildly disappointed. Since arguments are *passed* and>
functions/procedures are *called*, surely it would have made more sense
to use "pass by value" rather than "call by value", especially in a
language where the mechanism can vary per parameter.
All that is, I think, due to subsequent changes in (English) language
use. In Algol 60, procedures were invoked and /parameters/ were called
by value or name. Maybe the term was intended to reflect the idea that
the code in the body "called for the value" of the parameter.
>
The word "call" now refers, almost universally, to invoking a function
or procedure. As a result, the idea of "calling a parameter" reads
oddly, but at the time I'm sure it seemed perfectly reasonable.
Les messages affichés proviennent d'usenet.