{"blog_title":"kubo39's blog","title":"D\u8a00\u8a9e\u306ecast","categories":["D\u8a00\u8a9e"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkubo39.hatenablog.com%2Fentry%2F2016%2F12%2F20%2FD%25E8%25A8%2580%25E8%25AA%259E%25E3%2581%25AEcast\" title=\"D\u8a00\u8a9e\u306ecast - kubo39&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","url":"https://kubo39.hatenablog.com/entry/2016/12/20/D%E8%A8%80%E8%AA%9E%E3%81%AEcast","image_url":null,"author_url":"https://blog.hatena.ne.jp/kubo39/","height":"190","width":"100%","version":"1.0","type":"rich","author_name":"kubo39","description":"D\u8a00\u8a9e\u3067\u578b\u5909\u63db\u3057\u305f\u304b\u3063\u305f\u3089\u57fa\u672c\u306f std.conv.to \u4f7f\u3046\u306e\u304c\u5b89\u5168\u3067\u3042\u308b\u3002 import std.conv; void main() { int a = 1; long b = a.to!long; assert(b == 1); } std.conv.to\u306f\u5b89\u5168\u3067\u3042\u308b\u304c\u3001\u5b89\u5168\u3067\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u5236\u7d04\u304c\u5f37\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3082\u3042\u308b\u3002\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306fOverflow\u3092\u691c\u77e5\u3057\u4f8b\u5916\u3092\u6295\u3052\u308b\u3002 import std.conv : to; void main() { auto a = -11; // int ulong b = a.to!ulong; } $ rdmd -fPIC to.d std.co\u2026","published":"2016-12-20 22:57:30","blog_url":"https://kubo39.hatenablog.com/"}