<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yshl</author_name>
  <author_url>https://blog.hatena.ne.jp/yshl/</author_url>
  <blog_title>週1でも日記</blog_title>
  <blog_url>https://yshl.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>std.stream の eof を使ってみたら、ファイルの時と標準入力の時で挙動が違うのね。 ファイルの場合は、ファイルの最後まで読むと、その後を読もうとしなくても eof は true を返すけど、標準入力のようにシーク不可能な場合は、ファイル終端の先を読もうとしないと true を返さない。両方に対応するには「シーク可能かどうか調べる」「eof を使わない」のどちらがおすすめなのだろう。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyshl.hatenadiary.com%2Fentry%2F20100919%2F1284889512&quot; title=&quot;D言語でファイルや標準入力の終了を調べようとして - 週1でも日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-09-19 18:45:12</published>
  <title>D言語でファイルや標準入力の終了を調べようとして</title>
  <type>rich</type>
  <url>https://yshl.hatenadiary.com/entry/20100919/1284889512</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
