<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kkos</author_name>
  <author_url>https://blog.hatena.ne.jp/kkos/</author_url>
  <blog_title>報國挺身日記</blog_title>
  <blog_url>https://kkos.hatenadiary.org/</blog_url>
  <categories>
    <anon>Classbox</anon>
  </categories>
  <description>前回、classboxで拡張したフィールドの初期化と参照の関係をどう保証するのか、という疑問点を書いた。しかし、若しRubyのように実行時の代入によってインスタンス変数が割り当てられる言語で、未定義インスタンス変数の参照はエラーとするという仕様であれば(Rubyはそうではないが)、そのエラーによってチェックだけはできる。 以下の例で言うと、Bazの中のB#b()の@bazの参照が未定義エラーとなる。 classbox Foo class A; end class B &lt; A def b(); raise &quot;extended classbox responsibility&quot;; end def s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkkos.hatenadiary.org%2Fentry%2F20060328%2F1143556624&quot; title=&quot; 2006/03/25の続き - 報國挺身日記&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>2006-03-28 23:37:04</published>
  <title> 2006/03/25の続き</title>
  <type>rich</type>
  <url>https://kkos.hatenadiary.org/entry/20060328/1143556624</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
