@[email protected] to Programmer [email protected] • 9 months agoThe temptation is always therelemmy.worldimagemessage-square101arrow-up11.12Karrow-down139
arrow-up11.08Karrow-down1imageThe temptation is always therelemmy.world@[email protected] to Programmer [email protected] • 9 months agomessage-square101
minus-square@[email protected]linkfedilink3•edit-29 months agoint const golden = 1.618; int* non_constant = (int*)&golden; golden = 1.61803399; Casts are totally not a danger that should require a comment explaining safety…
Or mutable constants…
int const golden = 1.618; int* non_constant = (int*)&golden; golden = 1.61803399;
Casts are totally not a danger that should require a comment explaining safety…