why cannot assign to function call

rurpy at yahoo.com rurpy at yahoo.com
Fri Jan 9 02:27:33 CET 2009


Mark Wooding wrote:
...
> I agree with the comment about Pascal, but C is actually pretty similar
> to Python here.  C only does pass-by-value.

As a side comment (because it always bugs me when
I read this, even though I read it in very authoritative
sources), ISTM that C passes everything by value except
arrays; they are passed by reference (by passing a
pointer to the array by value.)  Admittedly, the close
relationship between arrays and pointers makes it easy
conflate them.



More information about the Python-list mailing list