<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font size="4">Hi folks, <br>
      </font></p>
    <p><font size="4">When I look at the code, at line 9 :</font></p>
    <p><!-- HTML generated using hilite.me --></p>
    <div
style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
      <table>
        <tbody>
          <tr>
            <td>
              <pre style="margin: 0; line-height: 125%"> 1
 2
 3
 4
 5
 6
 7
 8
 9
10</pre>
            </td>
            <td>
              <pre style="margin: 0; line-height: 125%"><span
              style="color: #BB0066; font-weight: bold">DataStream</span><span
              style="color: #0066BB; font-weight: bold">>>nextPut:</span> <span
              style="color: #996633">anObject</span>
        <span style="color: #888888">"Write anObject to the receiver stream. Answer anObject."</span>
        <span style="color: #333333">|</span><span style="color: #996633"> typeID selector objectToStore </span><span
              style="color: #333333">|</span>

        <span style="color: #996633">typeID</span> <span style="color: #333333">:=</span> <span
              style="color: #007020">self</span> <span
              style="color: #0066BB; font-weight: bold">typeIDFor:</span> <span
              style="color: #996633">anObject</span>.
        (<span style="color: #007020">self</span> <span
              style="color: #0066BB; font-weight: bold">tryToPutReference:</span> <span
              style="color: #996633">anObject</span> <span
              style="color: #0066BB; font-weight: bold">typeID:</span> <span
              style="color: #996633">typeID</span>)
                <span style="color: #007020">ifTrue:</span> [<span
              style="color: #333333">^</span> <span
              style="color: #996633">anObject</span>].

        <span style="color: #996633">objectToStore</span> <span
              style="color: #333333">:=</span> (<span
              style="color: #007020">self</span> <span
              style="color: #0066BB; font-weight: bold">objectIfBlocked:</span> <span
              style="color: #996633">anObject</span>) <span
              style="color: #0066BB; font-weight: bold">objectForDataStream:</span> <span
              style="color: #007020">self</span>.
        <span style="color: #996633">objectToStore</span> <span
              style="color: #0066BB; font-weight: bold">==</span> <span
              style="color: #996633">anObject</span> <span
              style="color: #007020">ifFalse:</span> [<span
              style="color: #996633">typeID</span> <span
              style="color: #333333">:=</span> <span
              style="color: #007020">self</span> <span
              style="color: #0066BB; font-weight: bold">typeIDFor:</span> <span
              style="color: #996633">objectToStore</span>].
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <p><!-- HTML generated using hilite.me --></p>
    <p><font size="4">Then in DiskProxy usage, for example:</font></p>
    <p><!-- HTML generated using hilite.me --></p>
    <div
style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
      <pre style="margin: 0; line-height: 125%"><span
      style="color: #BB0066; font-weight: bold">WorldMorph</span><span
      style="color: #0066BB; font-weight: bold">>>objectForDataStream:</span> <span
      style="color: #996633">refStrm</span>
        <span style="color: #888888">"I am about to be written on an object file.  Write a path to me in the other system instead."</span>

        <span style="color: #333333">|</span><span style="color: #996633"> dp </span><span
      style="color: #333333">|</span>
        <span style="color: #996633">dp</span> <span style="color: #333333">:=</span> <span
      style="color: #BB0066; font-weight: bold">DiskProxy</span> <span
      style="color: #0066BB; font-weight: bold">global:</span> <span
      style="color: #AA6600">#Smalltalk</span> <span
      style="color: #0066BB; font-weight: bold">selector:</span> <span
      style="color: #AA6600">#runningWorld</span> <span
      style="color: #0066BB; font-weight: bold">args:</span> <span
      style="color: #AA6600">#()</span>.
        <span style="color: #996633">refStrm</span> <span
      style="color: #0066BB; font-weight: bold">replace:</span> <span
      style="color: #007020">self</span> <span
      style="color: #0066BB; font-weight: bold">with:</span> <span
      style="color: #996633">dp</span>.
        <span style="color: #333333">^</span> <span style="color: #996633">dp</span>
</pre>
    </div>
    <p><font size="4">The </font><span style="color: #996633">refStrm</span>
      <span style="color: #0066BB; font-weight: bold">replace:</span> <span
        style="color: #007020">self</span> <span
        style="color: #0066BB; font-weight: bold">with:</span> <span
        style="color: #996633">dp</span>. does not make sense to me
      because self was not added to the stream yet<br>
    </p>
    <p>What am I missing?<br>
    </p>
    <p><font size="4">Thanks</font></p>
    <p><font size="4">Hilaire<br>
      </font></p>
    <p><font size="4"><br>
      </font></p>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://mamot.fr/@drgeo">http://mamot.fr/@drgeo</a></pre>
  </body>
</html>