Jan-15-2024, 08:04 PM
(This post was last modified: Jan-15-2024, 08:04 PM by Gribouillis.)
(Jan-15-2024, 05:38 PM)sgrey Wrote: pass by assignment, which is not even fully correct, but I guess does highlight the concept in way.I think "pass by assignment" is ambiguous because assignment means different things in different languages. "Pass by Python assignment" would be better. In C++ classes can redefine the assignment operator, but the assignment operator is used when objects are passed by value as far as I remember.
I would probably use "pass by object", like in "please pass the bread".
« We can solve any problem by introducing an extra level of indirection »