{"blog_title":"...ing logging 4.0","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/haru-s/","published":"2009-04-05 02:15:02","width":"100%","categories":["D\u8a00\u8a9e"],"url":"https://haru-s.hatenablog.com/entry/20090405/1238951702","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20090405%2F1238951702\" title=\"typedef or alias this - dmd 2.027 - ...ing logging 4.0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"haru-s","height":"190","image_url":null,"blog_url":"https://haru-s.hatenablog.com/","title":"typedef or alias this - dmd 2.027","type":"rich","provider_name":"Hatena Blog","description":"import std.stdio; void main() { { typedef int HWND; HWND hwnd = 0; int hoge; //hwnd = hoge; // error writeln(hwnd); writefln(typeid(typeof(hwnd))); writefln(HWND.sizeof); } writeln(); { struct HWND { alias handle this; private int handle; } HWND hwnd = 0; int hoge; hwnd = hoge; //writeln(hwnd); // e\u2026"}