some questions about Object and Spec
Hi ben I was looking at Spec code and I wonder why we have these methods in Object? asWidget ^ self I do not get why any object could get a widget. isSpecAdapter ^ false since an adapter is a subclass of Morph why can we move it to morph? If in the future we have other adapter then we will just add isSpecAdapter to the root of the new hierarchy. isSpecLayout ^ false For this one I did not have an idea. Stef
So it seems you don't follow your doctor advice. :) Esteban A. Maringolo 2014/1/6 Stéphane Ducasse <stephane.ducasse@inria.fr>:
Hi ben
I was looking at Spec code and I wonder why we have these methods in Object?
asWidget
^ self
I do not get why any object could get a widget.
isSpecAdapter
^ false
since an adapter is a subclass of Morph why can we move it to morph? If in the future we have other adapter then we will just add isSpecAdapter to the root of the new hierarchy.
isSpecLayout
^ false
For this one I did not have an idea.
Stef
participants (2)
-
Esteban A. Maringolo -
Stéphane Ducasse