What other languages use the same data model as Python?

Grant Edwards invalid at invalid.invalid
Thu May 5 10:24:37 EDT 2011


On 2011-05-05, Gregory Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Hans Georg Schaathun wrote:
>> Is transmission by name the same as call by object?
>
> 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.
>
> This allows some neat tricks, but it's massive overkill for most
> uses.

It also is a very good source of surprising bugs.

-- 
Grant Edwards               grant.b.edwards        Yow! I feel like I'm
                                  at               in a Toilet Bowl with a
                              gmail.com            thumbtack in my forehead!!



More information about the Python-list mailing list