[squeak-dev] Towards clean unloading Morphic (an idea)

Igor Stasenko siguctua at gmail.com
Thu May 20 09:47:17 UTC 2010


Hello,

i just thought, that in order to get down to a minimal kernel image,
it would be nice to move all Morphic globals into a shared pool.

Things like, World, ActiveWorld
could be placed into a MorphicPool class.

Then we can make an easy transition
1. add this pool to classes which using that global & recompile them

2. for classes, which should have no dependency from Morphic,
use a messages like

Object >> currentWorld
   ^ (Smalltalk at: #MorphicPool ifAbsent: [ self error: 'bummer' ])
currentWorld .

Then, i hope, you can unload the Morphic using MC and it will leave no
trace in an image (or at least less trace than usual ;).

Same could be applied to Graphics package (to get rid a Display global)

-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list