which language allows you to change an argument's value?

Roedy Green see_website at mindprod.com.invalid
Sun Sep 30 21:53:47 EDT 2007


On Sun, 30 Sep 2007 10:47:13 -0000, Summercool
<Summercoolness at gmail.com> wrote, quoted or indirectly quoted someone
who said :

>and now n will be 3.  I think C++ and PHP can let you do that, using
>their reference (alias) mechanism.  And C, Python, and Ruby probably
>won't let you do that.  What about Java and Perl?

Seem to me you could in FORTRAN and Pascal, and maybe even Algol.  It
has been a while.

I have come to appreciate Java's strong isolation convention. It makes
it a lot easier to track down WHERE in the code a value could
potentially change and keeps those places to a minimum.

-- 
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



More information about the Python-list mailing list