checkedint call removal

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 30 21:54:27 PDT 2014


Walter Bright:

>> assert(x != NULL);
>>
>> if(x != NULL) {
>>     x->foo = 42;
>>     // ...
>> }
>>...
> Your code is doomed to having problems using assert this way.

That usage of assert is fine. D programs use it that way. (And 
you are going to break lot of D code if you will change the 
semantics of D assert).

Bye,
bearophile


More information about the Digitalmars-d mailing list