Small @nogc experience report
Guillaume Piolat
spam at smam.org
Tue Sep 11 13:33:57 UTC 2018
On Monday, 10 September 2018 at 09:11:38 UTC, Kagamin wrote:
> On Saturday, 8 September 2018 at 08:32:58 UTC, Guillaume Piolat
> wrote:
>> There is no other choice when the runtime is disabled but to
>> have @nogc.
>> It's a fantastic peace of mind for high-performance to be able
>> to _enforce_ something will not allocate.
>
> You can't have a working GC allocation with disabled runtime,
> can you?
Indeed and that's why you must ensure at compile-time that you
have no `new` else you have a runtime crash, and one that might
be difficult to test unless you have perfect coverage.
More information about the Digitalmars-d
mailing list