<div dir="ltr"><div dir="ltr">On Mon, Oct 14, 2019 at 4:06 AM David T. Lewis <<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It's a bug.<br>
<br>
It may be more of a conceptual bug than a code error. The "size" of<br>
the stdout file stream is not knowable, so the file size test in<br>
StandardFileStream>>closed does not really make sense in the context<br>
of an output stream that typically is not attached to a file.<br>
<br>
Having said that, I see this result with the classic interpreter VM<br>
on an updated image (trunk level update but old V3 image format):<br>
<br>
  OSProcess thisOSProcess stdOut closed ==> false<br>
  FileStream stdout closed ==> true.<br>
<br>
And with the current Cog/Spur on a similar level image:<br>
<br>
  OSProcess thisOSProcess stdOut closed ==> true<br>
  FileStream stdout closed ==> true<br>
<br>
So at one time, the test worked correctly with OSProcess.<br>
<br>
So maybe there is a way to have it work as expected with FileStream>>stdout<br>
(and OSProcess again). I suspect the differences may be related to<br>
VM changes in the SQFile data structure, but I have not checked to<br>
confirm.<br></blockquote><div><br></div><div>Thanks, Dave! I've opened an issue against OpenSmalltalkVM:</div><div><a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/430">https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/430</a><br></div><div><br></div><div>Fabio</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Dave<br>
<br>
<br>
On Sun, Oct 13, 2019 at 02:52:26PM +0200, Fabio Niephaus wrote:<br>
> Hi all,<br>
> <br>
> `FileStream stdout closed` returns `true`. Is there a specific reason for<br>
> this or is it a bug?<br>
> <br>
> Cheers,<br>
> Fabio<br>
<br>
> <br>
<br>
<br>
</blockquote></div></div>