stupid errors

debugger debugger_member at pathlink.com
Mon Mar 20 07:11:32 PST 2006


Detecting errors like this:

SomeType f(){
SomeType result;
result= SOMECONST;
return result;
}

void g(){
SomeType value;
value= f();
switch( value){
case SOMECONST:
assert( value == SOMECONST); // fails !!!
}
}

is no reputation for any language.

Changing the switch to cascaded if's worked okay, but for six years developing
this kind of bug is @!*$ and I am not interested in wasting my time





More information about the Digitalmars-d-bugs mailing list