<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bleis-tift</author_name>
  <author_url>https://blog.hatena.ne.jp/bleis-tift/</author_url>
  <blog_title>ぐるぐる～</blog_title>
  <blog_url>https://bleis-tift.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Java</anon>
    <anon>C#</anon>
    <anon>F#</anon>
    <anon>JSX</anon>
  </categories>
  <description>Maybe つながりで、色んな言語の null の扱いについてちょっとだけまとめてみた。 観点は一つ、「this が null の場合に this の指す先にアクセスしないメソッドが呼び出せるか」です。 C++ #include &lt;iostream&gt; struct hoge { void f() { if (this == 0) std::cout &lt;&lt; &quot;this is null.&quot; &lt;&lt; std::endl; else std::cout &lt;&lt; &quot;this is not null.&quot; &lt;&lt; std::endl; } }; int main() { hoge* h = 0; h-&gt;f(); …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbleis-tift.hatenablog.com%2Fentry%2F20120630%2F1340983280&quot; title=&quot;null の扱い - ぐるぐる～&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>2012-06-30 00:21:20</published>
  <title>null の扱い</title>
  <type>rich</type>
  <url>https://bleis-tift.hatenablog.com/entry/20120630/1340983280</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
