DIP60: @nogc attribute

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 18 04:54:20 PDT 2014


On 04/18/2014 10:50 AM, bearophile wrote:
>
>> Honestly, I think expecting that code to be allowed to use @nogc is a
>> huge mistake and disagree with editing the DIP to include this solely
>> because you decided it should.
>
> That Wiki page is editable, so if it's wrong it takes one minute to fix
> the text I have written.  What I have decided to include is an explicit
> explanation regarding what a correct D compiler should do in that case.

In which case? In case some version of LDC2 is able to avoid the heap 
allocation using full optimizations? :o)


More information about the Digitalmars-d mailing list