RFC: moving forward with @nogc Phobos

Dmitry Olshansky via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 30 11:06:28 PDT 2014


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


More information about the Digitalmars-d mailing list