<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 24, 2015 at 1:01 PM, H. Hirzel <span dir="ltr">&lt;<a href="mailto:hannes.hirzel@gmail.com" target="_blank">hannes.hirzel@gmail.com</a>&gt;</span> wrote:<br><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"> <span style="color:rgb(34,34,34)">This simple case where there is only one environment is described in</span></div></div>
<a href="http://bugs.squeak.org/view.php?id=7814" rel="noreferrer" target="_blank">http://bugs.squeak.org/view.php?id=7814</a><br>
<br>
And currently probably nearly 100% of the users still have only one<br>
environment.<br>
<br>
What would it mean to fix this case?<br></blockquote><div><br></div><div>Ok, I think I&#39;ve got it sorted out. I&#39;ve made the following changes in trunk:</div><div><br></div><div>- Bindings implement #objectForDataStream: by always creating a DiskProxy</div><div>- Association should never create a DiskProxy, so no longer implement #objectForDataStream:</div><div>- DiskProxy now uses the current environment in #comeUpFullyOnReload:, rather than Smalltalk</div><div><br></div><div>That should take care of the single-environment case. It should also work for multi-environment images, if we create UI for setting the &quot;current&quot; environment, or actually make use of the &quot;environment&quot; instance variable in Project.</div><div><br></div><div>One other change was required to get loading a project to work, but this has nothing to do with environments. In the Inbox, I&#39;ve uploaded a version of Morphic that implements PasteUpMorph&gt;&gt;referencePool, which creates a new reference pool... whatever that is. Could someone who knows more about Projects review that, please?</div><div><br></div><div>With these four changes, it&#39;s possible to save and load projects in a Squeak 4.6 image. It doesn&#39;t work in a trunk image, however. The Spur VM crashes when saving a project. I&#39;ve reported that on the VM list. It also fails to load an image segment - looks like the primitive for that isn&#39;t quite finished in Spur. </div><div><br></div><div>Though I&#39;ve tested these changes in a 4.6 image, I committed them to trunk only. What&#39;s the correct way to get them into the 4.6 update stream as well?</div><div><br></div><div>Colin</div><div> </div></div></div></div>