why cannot assign to function call
castironpi at gmail.com
Wed Jan 14 03:15:09 CET 2009
On Jan 13, 5:06 pm, Mark Wooding <m... at distorted.org.uk> wrote:
> I'm going to move away from the formal semantics stuff and try a
> different tack. Here's what I think is the defining property of
> pass-by-value (distilled from the formal approach I described earlier,
> but shorn of the symbolism):
> The callee's parameters are /new variables/, initialized /as if by
> assignment/ from the values of caller's argument expressions.
In other words, the same as assignment in that language.
> Because its argument passing works the same way as its assignment.
That would be called pass-by-assignment. But you've just postponed
explaining yourself. Stop delegating and work.
More information about the Python-list