[Issue 15484] New: core.memory.GC.disable() is not @nogc
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Dec 30 23:03:43 PST 2015
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 at puremagic.com
Reporter: lt.infiltrator at 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;
}
--
More information about the Digitalmars-d-bugs
mailing list