Garbage Collection and gamedev - tl;dr Yes we want it, so let's solve it
Adam D. Ruppe
destructionator at gmail.com
Mon Nov 23 03:44:02 UTC 2020
On Monday, 23 November 2020 at 03:27:48 UTC, RazvanN wrote:
> I've been looking into this and the main issue that has caused
> slow progress in templatizing the runtime is the fact that the
> hooks need to be `@trusted pure @nogc nothrow`. Why? Because
> those hooks may get called from `@trusted pure @nogc nothrow`
@trusted I understand, but the others should be correctly
inferred be a template anyway and if they can't be.... so be it.
There are already druntime functions you can't use from @nogc,
they're just special cased in the compiler instead picked up from
the implementation...
More information about the Digitalmars-d
mailing list