just filed https://issues.dlang.org/show_bug.cgi?id=18407 Issue 18407 - debug should escape nothrow, @nogc, @safe (not just pure)
On Thu, Feb 8, 2018 at 5:38 AM, Steven Schveighoffer via Digitalmars-d <digitalmars-d@puremagic.com> wrote: > On 2/8/18 8:32 AM, Steven Schveighoffer wrote: >> >> On 2/7/18 10:32 PM, Timothee Cour wrote: >>> >>> same question with how to wrap a gc function inside a nogc shell, if >>> not, allowing a flag -ignore_nogc that'd enable this (again, for >>> debugging purposes) >> >> >> If you wrap the call in a debug block, it will work. >> >> int foo() pure >> { >> debug writeln("yep, this works"); >> } > > > Gah, I see this was answered 2 other times, but for some reason, your > replies turn out as new threads. > > Sorry for the extra noise. > > -Steve