Damn C++ and damn D!

so so at so.so
Sun Feb 5 05:49:04 PST 2012


After some time with D, C++ is now a nightmare for me. (especially on
generic coding)
Think about replicating this simple code in C++.

void fun(T)(T a)
{
     static if(cond(T))
     {
        auto var = make(a);
     }
     else
     {
        auto tmp = make(a);
        auto var = make_proxy(tmp);
     }
     ...
}

And this is just "one" condition.
Damn D for introducing these and damn C++ committee for not adopting.


More information about the Digitalmars-d mailing list