On Mon, Jul 19, 2010 at 22:06, Simen kjaeraas <simen.kja...@gmail.com>wrote:
> template hasSetter(alias func) if (isCallable!(func)) { > enum hasSetter = isProperty!(func) && > is( typeof( (){ func = ReturnType!(func).init; } ) ); > } > > 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? Philippe