pure vs writeln debugging

Adam D. Ruppe destructionator at gmail.com
Sat Feb 8 16:32:16 PST 2014


On Sunday, 9 February 2014 at 00:18:28 UTC, Nick Sabalausky wrote:
> So I take it purity enforcement is disabled with the -debug 
> flag? Or is it some sort of hack with writeln?

The debug statement specifically (which is only compiled in when 
you use the -debug flag).

debug foo(); will work in a pure function, even if foo is not 
pure.


More information about the Digitalmars-d-learn mailing list