stupid errors

Tom ihate at spam.com
Mon Mar 20 20:06:58 PST 2006


debugger escribió:
> 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

Sorry, I can't contain myself but, what an asshole.

Tom;



More information about the Digitalmars-d-bugs mailing list