On Jan 11, 8:32 am, Paul Rubin <http://phr...@nospam.invalid> wrote: > Steven D'Aprano <st...@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 in order for the C example to be p-b-r, you would need the following: void foo(var int bar[2]) { bar = malloc( something ); } Such that the caller reflects the change. -- http://mail.python.org/mailman/listinfo/python-list