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:32:15 UTC 2018
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");
}
-Steve
More information about the Digitalmars-d
mailing list