www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15484] New: core.memory.GC.disable() is not nogc


          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() {
   // do something including allocations
   return something;

Dec 30 2015