IsPython really O-O?
Thomas Heller
thomas.heller at ion-tof.com
Thu Nov 15 10:15:59 EST 2001
"Laura Creighton" <lac at strakt.com> wrote in message news:mailman.1005822025.13344.python-list at python.org...
> (I've always wanted to ask this:)
>
> The Design Patterns Smalltalk Companion (p 214) discussing Proxy states:
>
> 'Since the problem lies in Proxy's subclass relation to
> object, one way to solve it would be to dissolve this
> relationship. How is this possible? Subclass Proxy off nil'
>
> Do people actually do this. Pardon this phrasing, but isn't it, ah,
> 'evil'? I'm way to scared to use it, though of course I had to write
> one just to see it.
>
Laura,
wrong group, I'd say ;-)
I remember having played with this (with great fun), but I didn't
use it in production code.
Firing up VSW311, I find (in the class browser which probably does not
display all classes) these classes as subclasses of nil other than Object:
SelfInitializingObject
SelfInitializingObjectReference
Smells like the proxy pattern...
Thomas
More information about the Python-list
mailing list