Last updated at 10:34 pm UTC on 9 December 2017
The World or world in Morphic is the rectangular area which fills the whole screen.
World with starting with an uppercase W is a global variable which keeps the instance of the topmost PasteUpMorph of the currently active MorphicProject.
World with starting with an lower w is the instance variable of the project. Both variables point to the same object.
- All other morphs are submorphs (or submorphs of submorphs) of this Morph.
- Any Morph answers the message #world which returns this topmost instance of PasteUpMorph.
- All Morphs you see on a screen belong to one big composition hierarchy with the global variable World pointing to the topmost Morph, which is a PasteUpMorph.
- The World PasteUpMorph instance refers to a WorldState object
Notes on the World PasteUpMorph instance
In December 2017 in Squeak 6.0a references to the global word have been replaced with
Project current world
Remove global variable World