Small @nogc experience report

Petar Petar
Thu Sep 20 12:41:07 UTC 2018


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


More information about the Digitalmars-d mailing list