How to make invariant switchable

Denis Koroskin 2korden at gmail.com
Thu Jun 18 06:12:25 PDT 2009


On Thu, 18 Jun 2009 17:09:12 +0400, Qian Xu <quian.xu at stud.tu-ilmenau.de>  
wrote:

> Denis Koroskin wrote:
>>
>> No, they wont.
>
> Is there any reason for that?

I dont know. I'd prefer to write

> debug assert(foo == bar, "foo must be equal to bar");

if I'd like to turn them off in release mode.



More information about the Digitalmars-d mailing list