passing by refference

Doug Quale quale1 at charter.net
Thu May 15 16:54:42 EDT 2003


"Daniel Fackrell" <unlearned at DELETETHIS.learn2think.org> writes:

> At the machine level, all that can ever be passed to a
> procedure/function/method/whatever is a value, so in a sense, all languages
> could be considered to be strictly call-by-value.

This isn't really a problem because that's not what call-by-value
means.  The term doesn't describe implementation, it describes
behavior.  You don't determine whether a programming language is cbv
by looking at its compilers and interpreters, you look at the behavior
of its programs.

In cbv, the parameters are evaluated and their r-values are passed to
the function.  That's all there is to it.




More information about the Python-list mailing list