The Right Approach to Exceptions

Timon Gehr timon.gehr at
Sat Feb 25 05:10:47 PST 2012

On 02/21/2012 07:57 PM, deadalnix wrote:
> opDispatch is nice, but rather incomplete. It doesn't handle template
> methods for example.

It surely does.

struct S{
     template opDispatch(string op){
         auto opDispatch(T...)(T args){
             writeln(op, args);
void main() {
     S s;,2.0,"bar");

More information about the Digitalmars-d mailing list