{"type":"rich","categories":["C++","Java","C#","F#","JSX"],"width":"100%","author_name":"bleis-tift","image_url":null,"title":"null \u306e\u6271\u3044","url":"https://bleis-tift.hatenablog.com/entry/20120630/1340983280","blog_url":"https://bleis-tift.hatenablog.com/","description":"Maybe \u3064\u306a\u304c\u308a\u3067\u3001\u8272\u3093\u306a\u8a00\u8a9e\u306e null \u306e\u6271\u3044\u306b\u3064\u3044\u3066\u3061\u3087\u3063\u3068\u3060\u3051\u307e\u3068\u3081\u3066\u307f\u305f\u3002 \u89b3\u70b9\u306f\u4e00\u3064\u3001\u300cthis \u304c null \u306e\u5834\u5408\u306b this \u306e\u6307\u3059\u5148\u306b\u30a2\u30af\u30bb\u30b9\u3057\u306a\u3044\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u305b\u308b\u304b\u300d\u3067\u3059\u3002 C++ #include <iostream> struct hoge { void f() { if (this == 0) std::cout << \"this is null.\" << std::endl; else std::cout << \"this is not null.\" << std::endl; } }; int main() { hoge* h = 0; h->f(); \u2026","blog_title":"\u3050\u308b\u3050\u308b\uff5e","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/bleis-tift/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbleis-tift.hatenablog.com%2Fentry%2F20120630%2F1340983280\" title=\"null \u306e\u6271\u3044 - \u3050\u308b\u3050\u308b\uff5e\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","published":"2012-06-30 00:21:20"}