{"version":"1.0","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","width":"100%","url":"https://haru-s.hatenablog.com/entry/20100125/1264450260","published":"2010-01-25 05:11:00","blog_title":"...ing logging 4.0","author_name":"haru-s","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20100125%2F1264450260\" title=\"inout(type) or inout(type)? - ...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>","categories":["D\u8a00\u8a9e"],"type":"rich","author_url":"https://blog.hatena.ne.jp/haru-s/","title":"inout(type) or inout(type)?","height":"190","blog_url":"https://haru-s.hatenablog.com/","image_url":null,"description":"http://www.digitalmars.com/d/2.0/function.html inout(int)[] foo(inout(int)[] a, int x, int y) { return a[x .. y]; } \u3075\u3080\uff0e import std.stdio; inout(int)[] f(inout(int)[] a, int x, int y) { return a[x .. y]; } void main() { auto b = f([1,2,3,4,5,6,7][], 1, 3); writeln(b); } hello.d(10): Error: function h\u2026"}