Compiling debug missing errors

Duarte via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 9 14:40:22 PDT 2017


On Sunday, 9 April 2017 at 20:59:26 UTC, ag0aep6g wrote:
> On 04/09/2017 10:49 PM, Duarte wrote:
>> [...]
>
> You're allowed to break purity in debug code.
>
> From the spec: "As a concession to practicality, a pure 
> function can also [...] perform impure operations in statements 
> that are in a ConditionalStatement controlled by a 
> DebugCondition"
>
> https://dlang.org/spec/function.html#pure-functions


Cheers mate!


More information about the Digitalmars-d-learn mailing list