why cannot assign to function call

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sun Jan 11 11:28:58 EST 2009


On Sun, 11 Jan 2009 06:32:31 -0800, Paul Rubin wrote:

> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:
>> If it walks like pass-by-reference, and smells like pass-by-reference,
>> and swims like pass-by-reference, is it still your contention that it
>> is pass-by-value?
> 
> Of course the C example is pass by value.  It's just that the value
> being passed is an address.

I believe that's exactly the way VAR (reference) parameters are 
implemented in Pascal. What's the difference?


-- 
Steven



More information about the Python-list mailing list