A bug in source code

Oh no! The robots are killing us!

But why? We nerver programmed them to do this!

static bool isCrazyMurderingRobot = false;
void interact_with_humans(void){
    if(isCrazyMurderingRobot = true)
        kill(humans);
    else
        be_nice_to(humans);
}

All replies

if(isCrazyMurderingRobot = true)

This is wrong

Leave a Reply
You must be logged in to post a comment..
About the author