Terry Hancock <[EMAIL PROTECTED]> writes:
> On Sat, 07 Jan 2006 01:29:46 -0500
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>> From what I can tell, Liskov proposed *three* different
>> names for
>> passing references to objects: call-by-sharing,
>> call-by-object, and call-by-object-reference.
> "Call by object reference" makes the most sense to me. Names
> in Python are object references: they refer to objects.  You
> might almost say "call by name" but that sort of implies
> that you are passing the strings around (which is generally
> untrue)

"Call by name" has a specific meaning that is different from passing
strings around. CBName (and CBNeed) is generally implemented by
passing thunks. In Python, you could do CBN by passing tuples of
(string, globals(), locals()) around - which probably makes enough
noise when it hits the stack to qualify as a thunk.

      <mike
-- 
Mike Meyer <[EMAIL PROTECTED]>                  http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to