What other languages use the same data model as Python?

Hans Georg Schaathun hg at schaathun.net
Thu May 5 00:58:51 EDT 2011


On Thu, 05 May 2011 15:48:51 +1200, Gregory Ewing
  <greg.ewing at canterbury.ac.nz> wrote:
:  No, it's not. With call-by-name, the caller passes a
:  small function (known as a "thunk") that calculates the
:  address of the parameter. Every time the callee needs to
:  refer to the parameter, it evaluates this function.

Well, call-by-name is not the same as transmission by name either.
Transmission by name is what most posters here call call by
reference, and transmission by reference is what this thread calls
object sharing or call by object.

No wonder I started off confused :-)  It is better now.



-- 
:-- Hans Georg



More information about the Python-list mailing list