RFC: moving forward with @nogc Phobos
Daniel N via Digitalmars-d
digitalmars-d at puremagic.com
Mon Sep 29 19:22:43 PDT 2014
On Monday, 29 September 2014 at 22:15:32 UTC, Andrei Alexandrescu
wrote:
> On 9/29/14, 11:44 AM, Shammah Chancellor wrote:
>> I don't like the idea of having to pass in template parameters
>> everywhere -- even for allocators.
>
> I agree.
>
There was a solution earlier in this thread which avoids that
problem. When a function is annotated with @nogc there's
sufficient info to chose the correct implementation without any
parameters, it's already known whether we are instantiated from a
@nogc block or not.
More information about the Digitalmars-d
mailing list