<div class="gmail_quote">On Mon, Jul 19, 2010 at 22:06, Simen kjaeraas <span dir="ltr">&lt;<a href="mailto:simen.kjaras@gmail.com">simen.kjaras@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
template hasSetter(alias func) if (isCallable!(func)) {<br><div class="im">
    enum hasSetter = isProperty!(func) &amp;&amp;<br></div>
        is( typeof( (){ func = ReturnType!(func).init; } ) );<br>
}<br><br></blockquote><div><br>In that case, for the second func, the one you call ReturnType on, how does the compiler knows it must take the ref uint one (the getter) and not the void func() one?<br><br><br>Philippe<br>
<br><br></div></div>