Invalid memory operation during allocation with `new`

Per Nordlöw per.nordlow at gmail.com
Sun Jan 12 15:46:59 UTC 2020


On Sunday, 12 January 2020 at 15:21:05 UTC, Per Nordlöw wrote:
> Thanks. So what about,
>
> - in the short run,
>   Qualifying all user-defined class destructors with `@nogc`?
>
> - in the long run,
>   Making DMD forbid GC-allocations transitively inside class 
> destructors?

AFAICT, these rules should in most cases hold also for struct 
destructors as those might be called inside class destructors, 
transitively.


More information about the Digitalmars-d-learn mailing list