Throwing specific Error Obejct for asserts

monarch_dodra monarchdodra at gmail.com
Thu Jan 10 11:47:42 PST 2013


On Thursday, 10 January 2013 at 19:31:18 UTC, Simen Kjaeraas 
wrote:
>
>
> So you're saying this does compile for you, with -release?
>
> struct S( ) {
>     version(assert)
>         bool isValid = false;
>
>     void foo() {
>         assert(isValid);
>     }
> }
>
> It certainly does not for me.

As a matter of fact, yes. Yes I am. Are you using 2.061 ?


More information about the Digitalmars-d mailing list