I just discovered that someStruct.someMethod and someStruct.opDispatch!("someMethod") don't have the same type. Strange.<br><br>struct S<br>{<br> int ii;<br> int foo(int i) { return ii;}<br> int opDispatch(string s)(int i) { return ii;}<br>
}<br><br>void main()<br>{<br> writeln(typeof(&S.foo).stringof); // int function(int)<br> writeln(typeof(&S.bar).stringof); // int delegate(int)<br>}<br><br>Anyone knows why?<br>