3 ms·
Couple of things: 1. "Call/pass by XXX" terminology usually refers to language semantics, not underlying implementation details. In that respect, the call-sta
by oliver_quartic 9y ago
Couple of things:
1. "Call/pass by XXX" terminology usually refers to language semantics, not underlying implementation details. In that respect, the call-stack mechanism is largely orthogonal here.
2. According to this oft-cited article (in the context of Java), passing an address under the hood is not sufficient to make a language call-by-reference. http://javadude.com/articles/passbyvalue.htm http://javadude.com/articles/passbyvalue.htm - AFAIK Python would "fail" the "Litmus test".
(EDIT - clarify what's not call-by-ref)