Defining VCL-like framework for Python

David Ascher da at ski.org
Fri May 21 16:21:09 EDT 1999


On Fri, 21 May 1999, Just van Rossum wrote:

> Thanks David, thats very helpful. It's sounds an awful lot like
> delegation, but smarter. How do the two concepts relate?

I suppose one can start by thinking of acquisition as automatized
delegation which is specialized to the containment hierarchy.  But it's
deeper than that.  For example, the specific value acquired will depend on
the containment *path*.

So, if A contains B, and C contains another reference to the same B, then
A.B.foo and C.B.foo may not give the same value, if 'foo' is acquired (it
will depend on what A.foo and C.foo are).

--david










More information about the Python-list mailing list