Hi Igor,<br><br><div class="gmail_quote">On Thu, May 20, 2010 at 2:47 AM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
i just thought, that in order to get down to a minimal kernel image,<br>
it would be nice to move all Morphic globals into a shared pool.<br>
<br>
Things like, World, ActiveWorld<br>
could be placed into a MorphicPool class.<br>
<br>
Then we can make an easy transition<br>
1. add this pool to classes which using that global &amp; recompile them<br>
<br>
2. for classes, which should have no dependency from Morphic,<br>
use a messages like<br>
<br>
Object &gt;&gt; currentWorld<br>
   ^ (Smalltalk at: #MorphicPool ifAbsent: [ self error: &#39;bummer&#39; ])<br>
currentWorld .<br>
<br>
Then, i hope, you can unload the Morphic using MC and it will leave no<br>
trace in an image (or at least less trace than usual ;).<br>
<br>
Same could be applied to Graphics package (to get rid a Display global)<br></blockquote><div><br></div><div>Good idea.  This is a little like a poor man&#39;s namespaces.  It suggests the following cheap hack namespaces:</div>
<div><br></div><div>Inside Smalltalk all the Morphic class names are #&#39;Morphic.Morph&#39;  #&#39;Morphic.TheWorldMenu&#39; etc.  Inside the MorphicNamespace shared pool they are #Morph #TheWorldMenu etc.  The bindings for these would have to be shared between Smalltalk and the MorphicNamespace shared pool.  I guess something like a smart subclass of VariableBinding that when decompiling printed itself differently depending on whether its home pool was in scope or not might make the sleight-of-hand invisible.  You&#39;d also need to hack the browsers to prune the Morphic. prefix when the selected category began with Morphic.  Is this a primrose path, a slippery slope or a worth-while experiment?</div>
<div><br></div><div>best</div><div>Eliot</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
<br>
</font></blockquote></div><br>