Mariano Wahlmann wrote:
Hi, my name is Mariano Wahlmann, i'm using Squeak3.8 and I have a questions about LineMorph class:
Why exists the new method as class method instead of having an initialize method?. I ask this because if you want to extend this class, you have to re-write new and initialize methods. Is this maybe a bug?.
Thanks
I think, it is a bug. The LineMorph class from:to:color:width: should not refer directly to `PolygonMorph'. It disables the attempts to make subclasses of LineMorph.
I recommend you to use PolygonMorph directly (subclass it if you need). Under certain conditions, you could also use polygon-morph (or line-morph) instances directly, set up their properties and make them part of larger structures. Morphic has great (other may have different opinion) mechanisms for composing things. One only has to learn them. As comrade Lenin said, browse-browse-browse. :)
Other complex (?) systems (apart from Squeak) are not BROWSABLE. Here, in Squeak, you can "disassemble" anything you see to learn how it was done. Recently, I have wondered if there are any similar (non Smalltalkian) complex systems which could be tagged as browsable. (LA)TEX stuff is not browsable, my Gnome desktop (I am currently temporarily using) is not browsable. Gnome and (LA)TEX are also open-source, but there is little correspondence between what you see and the code. Yes, one could hire a detective which would reveal where in the hell is the source code of that little stranglet one sees in the top-right corner. In Squeak, the correspondence is tangible. That is its virtue.
Are there any browsable systems (in the same sense as Squeak) ?