Andrei's list of barriers to D adoption

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 7 12:56:33 PDT 2016


On 6/7/16 3:44 PM, Walter Bright wrote:
> On 6/7/2016 11:32 AM, Adam D. Ruppe wrote:
>> On Tuesday, 7 June 2016 at 18:24:33 UTC, Walter Bright wrote:
>>> You can also add:
>>>
>>>    @nogc:
>>>
>>> at the top, too. It isn't necessary to tediously annotate every
>>> function.
>>
>> @nogc:
>>
>> struct Foo {
>>         int* a() { return new int; }
>> }
>>
>
> You're right, the global @nogc doesn't go through the struct. But @safe
> does.

Bug? I would have expected @nogc: to permeate.

-Steve


More information about the Digitalmars-d mailing list