JPDev@programming.dev to Programmer Humor@programming.dev · 3 months agoAlways try sudoprogramming.devimagemessage-square91fedilinkarrow-up1689arrow-down144
arrow-up1645arrow-down1imageAlways try sudoprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 3 months agomessage-square91fedilink
minus-squareSkates@feddit.nllinkfedilinkarrow-up1·3 months agoOldman.setHealth(“dicktits”); //normalize pls Oldman.setHealth(“-100±1%”); //make percentage pls Oldman.setHealth(0.0); //it is subunitary, but undefined behavior - will it access the ‘numeric value’ overload, or the ‘subunitary numeric value’ overload? Don’t write your own code just yet.
Oldman.setHealth(“dicktits”); //normalize pls
Oldman.setHealth(“-100±1%”); //make percentage pls
Oldman.setHealth(0.0); //it is subunitary, but undefined behavior - will it access the ‘numeric value’ overload, or the ‘subunitary numeric value’ overload?
Don’t write your own code just yet.