why cannot assign to function call

rurpy at yahoo.com rurpy at yahoo.com
Thu Jan 8 20:27:33 EST 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