{"url":"https://haru-s.hatenablog.com/entry/20081215/1229327251","blog_url":"https://haru-s.hatenablog.com/","type":"rich","width":"100%","published":"2008-12-15 16:47:31","title":"template mixin\u4f7f\u3048\u308b\uff1f","provider_name":"Hatena Blog","height":"190","categories":["D\u8a00\u8a9e"],"author_url":"https://blog.hatena.ne.jp/haru-s/","blog_title":"...ing logging 4.0","author_name":"haru-s","version":"1.0","provider_url":"https://hatena.blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20081215%2F1229327251\" title=\"template mixin\u4f7f\u3048\u308b\uff1f - ...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>","description":"http://d.hatena.ne.jp/haru-s/20080816/1218872330 \u306b\u53cd\u5fdc\u304c\u3042\u3063\u305f\u3053\u3068\u306b\u6c17\u304c\u4ed8\u3044\u305f\uff0e \u30c8\u30e9\u30c3\u30af\u30d0\u30c3\u30af\u306a\u3044\u304b\u3089\u308f\u304b\u3089\u306a\u304b\u3063\u305f\uff0e\u30c8\u30e9\u30d0\u306f\u4fbf\u5229\u3060\u306a\uff0e \u3053\u3046\u3059\u308b\u3068\u3069\u3046\u3060\u308d\u3046\uff1f import std.stdio; template Foo(int x, int y, int z){ int value = x + y + z; } template Bar(int x, int y, int z){ enum Bar = x + y + z; } void main() { int x = 1, y = 2, z = 3; mixin Foo!(x,y,z)\u2026"}