[Tutor] How to do call by reference (or equiv.) in Py?

Jeff Shannon jeff@ccvcorp.com
Sat Nov 23 18:28:02 2002


lumbricus@gmx.net wrote:

> There is no "call by reference" in C.

This is true -- references were added in C++ but don't exist in "plain" C.
However, passing pointers as parameters gives (almost) the same semantics,
provided that proper care is taken to dereference the pointers.  However, this
little detail has little to do with the essential parts of the O.P.'s question,
which is why I didn't address it before.

Jeff Shannon
Technician/Programmer
Credit International