<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-04-01 16:02 GMT+02:00 Colin Putney <span dir="ltr">&lt;<a href="mailto:colin@wiresong.com" target="_blank">colin@wiresong.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Tue, Apr 1, 2014 at 6:49 AM, David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Currently we have this:<br>
<br>
Binding&gt;&gt;objectForDataStream: refStream<br>
        &quot;It&#39;s not yet clear how serialization should work in the presence of environments&quot;<br>
        self shouldBeImplemented.<br>
<br>
A Binding seems to be a simple object. Does it really need special handling<br>
when serializing?<br></blockquote><div><br></div></div><div>It does. If you write a binding out to disk and then read it back in, you should have the same instance you started with, and not a copy. That part is fairly straight-forward: we include just the key in the data stream, and then when reading it back in we fetch the binding using the key.</div>

<div><br></div><div>For now, the simple thing is just to use &quot;Environment current&quot; when we need to lookup a binding. At some point we&#39;ll need a way to specify which environment to use when reading objects from disk, but that needn&#39;t stand in the way of getting this working again. </div>
<span class=""><font color="#888888">
<div><br></div><div>Colin</div></font></span></div></div></div>
<br><br>
 <br></blockquote><div><br>That&#39;s just what we would need to store: a reference to an {environment. variableName} pair, instead of a variableName.<br></div><div><br></div><div>This will raise following question : how do we refer to a specific environment?<br>
</div><div>Are environment registered uniquely by name, or is there another kind of known path to reach it from default environment?</div></div><br></div></div>