option -ignore_pure for temporary debugging (or how to wrap an unpure function inside a pure one)?

Steven Schveighoffer schveiguy at yahoo.com
Thu Feb 8 13:38:13 UTC 2018


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


More information about the Digitalmars-d mailing list