digitalmars.D.bugs - [Issue 15484] New: core.memory.GC.disable() is not nogc
- via Digitalmars-d-bugs (23/23) Dec 30 2015 https://issues.dlang.org/show_bug.cgi?id=15484
https://issues.dlang.org/show_bug.cgi?id=15484 Issue ID: 15484 Summary: core.memory.GC.disable() is not nogc Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: druntime Assignee: nobody puremagic.com Reporter: lt.infiltrator gmail.com I don't know whether this is valid, but core.memory.GC.disable() is not nogc. Should the following code be classified as able to hold a nogc tag and be able to be called by nogc functions? auto foo() { core.memory.GC.disable(); // do something including allocations core.memory.GC.enable(); return something; } --
Dec 30 2015