Small @nogc experience report
Seb
seb at wilzba.ch
Thu Sep 20 13:29:07 UTC 2018
On Thursday, 20 September 2018 at 13:21:21 UTC, Atila Neves wrote:
> On Thursday, 20 September 2018 at 12:41:07 UTC, Petar Kirov
> [ZombineDev] wrote:
>> On Thursday, 20 September 2018 at 10:50:49 UTC, Atila Neves
>> wrote:
>>>
>>> This pattern is incredibly easy to wrap and reuse as needed.
>>> I would've done already if only I'd known @nogc was ignored
>>> as well as pure.
>>
>> It's a recent development:
>> https://dlang.org/changelog/2.082.0#debug-unsafe :
>>
>>> Unsafe code can now be used in debug blocks
>>
>> https://dlang.org/changelog/2.079.0 :
>>
>>> Bugzilla 16492: support @nogc in debug{} blocks
>
> Ah. I was wondering how that passed me by! Thanks.
The only bit missing is `nothrow`:
https://github.com/dlang/dmd/pull/8449
More information about the Digitalmars-d
mailing list