<div dir="ltr">Interesting. You're attacking it from the ReturnType! angle... I didn't think of that.<div><br></div><div>I had to stare at this for like 10 minutes to work out how it works ;)<br></div><div>I think I can use this, but I'm not sure it addresses the hole in phobos?<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 September 2014 21:00, Kagamin via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">template ReturnType1(alias F, TArg)<br>
{<br>
        alias ReturnType1=typeof((){<br>
                ReturnType!F function(inout Unqual!TArg) test;<br>
                TArg testv;<br>
                return test(testv);<br>
        }());<br>
}<br>
</blockquote></div><br></div>