[Pharo-project] fun with morphic and inheritance

Fernando olivero oliverof at lu.unisi.ch
Mon Feb 1 04:40:52 EST 2010


Just a comment.

Following a discussion i recall having with Juan Vuletich, the same idea would apply for replacing Inheritance  with composition for  modeling geometry in Morphic.

Not having Morph -> RectangleMorph -> TextMorph , and pretty much all the subclasses of BorderedMorph.



On Jan 31, 2010, at 9:30 PM, Stéphane Ducasse wrote:

> Quizz
> 
> What is the superclass of PopUpChoiceMorph ?
> 
> 
> 
> the answer is below
> 
> |
> |
> |
> |
> |
> |
> |
> |
> |
> |
> |
> |
> |
> 
> .
> .
> .
> .
> .
> .
> .
> .
> .
> V
> 
> 
> 
> 
> StringMorph.... probably because it has a String displayed.
> 
> We removed it with luc and noury. But this is just an example of mix between inheritance
> and composition we would like to avoid in the future 
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project





More information about the Pharo-dev mailing list