<?xml version="1.0"?>
<paste-with-annotations>
  <paste>
    <number>
      <integer>63255</integer>
    </number>
    <user>
      <string>struppi</string>
    </user>
    <title>
      <string>stream-position-setter for &lt;file-stream&gt;</string>
    </title>
    <contents>
      <string>Index: fundev/sources/system/file-system/file-stream.dylan
===================================================================
--- fundev/sources/system/file-system/file-stream.dylan (Revision 11854)
+++ fundev/sources/system/file-system/file-stream.dylan (Arbeitskopie)
@@ -499,6 +499,19 @@
   position
 end method;
 
+define method stream-position-setter
+    (position == #&quot;end&quot;, stream :: &lt;file-stream&gt;)
+ =&gt; (position :: &lt;integer&gt;);
+  stream-position(stream)
+    := stream-size(stream);
+end method;
+
+define method stream-position-setter
+    (position == #&quot;start&quot;, stream :: &lt;file-stream&gt;)
+ =&gt; (position :: &lt;integer&gt;);
+  stream-position(stream) := 0;
+end method;
+
 // Special for dood - avoids the overhead of adjust-stream-position, but
 // allows setting the position to extend the file, unlike
 // stream-position-setter.
</string>
    </contents>
    <universal-time>
      <integer>3424129600</integer>
    </universal-time>
    <channel>
      <string>#dylan</string>
    </channel>
    <colorization-mode>
      <string></string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <keyword>TRUE</keyword>
    </is-unicode>
    <deletion-requested>
      <null/>
    </deletion-requested>
    <deletion-requested-email>
      <null/>
    </deletion-requested-email>
    <expiration-time>
      <null/>
    </expiration-time>
  </paste>
</paste-with-annotations>
