29-Sep-2014 14:49, Andrei Alexandrescu пишет:
auto setExtension(MemoryManagementPolicy mmp = gc, R1, R2)(R1 path, R2 ext)
if (...)
{
     static if (mmp == gc) alias S = string;
     else alias S = RCString;
     S result;
     ...
     return result;
}

Incredible code bloat? Boilerplate in each function for the win?
I'm at loss as to how it would make things better.


--
Dmitry Olshansky

Reply via email to