pure vs writeln debugging

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Sat Feb 8 16:18:18 PST 2014


On 2/8/2014 5:30 PM, Adam D. Ruppe wrote:
> On Saturday, 8 February 2014 at 22:27:39 UTC, Nick Sabalausky wrote:
>> Is there some way to poke enough of a hole in "pure" to get some
>> writeln debugging statements in?
>
> literally write
> debug writeln(..)
>
> abnd it should work in the pure function

Nice!

So I take it purity enforcement is disabled with the -debug flag? Or is 
it some sort of hack with writeln?



More information about the Digitalmars-d-learn mailing list