If you came here searching articole.strainu.ro or blog.strainu.ro, you're in the right place - all those sites were integrated in the main site.

15th
JUN

Call by sharing

Posted by Strainu | Filed under Functional Programming, Java, Python

In a previous article, I was saying trying to convince you that Java passes its parameters by value. Although this is the most widely-spread name for the action of passing references to objects, some experts have a different opinion. They name this parameter-passing technique “call by object” or “call by sharing“.

The only programming language that openly uses that name is CLU, however one must note that languages like LISP, Scheme, Python or Java use the same technique. You can find a short study on the subject in the python mailing list archives.