>From "Design Patterns" pg. 215:

    You can make[8] generic proxies in Smalltalk by defining classes whose
superclass is nil and defining the doesNotUnderstand: method to handle
messages.

    [8] Almost all classes ultimately have Object as their superclass. Hence
this is the same as saying "defining a class that doesn't have Object as its
superclass."

but in Pharo:
    nil subclass: #MyProxy
        instanceVariableNames: ''
        classVariableNames: ''
        category: ''
-> MessageNotUnderstood: receiver of
"subclass:instanceVariableNames:classVariableNames:category:" is nil



-----
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Proxies-Subclassing-nil-tp4816443.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to