Since most numerical code today is in libraries, and libraries can't go setting the CSR because different libraries might conflict, etc., it is really a huge issue. Please someone just change this globally, by fiat. Microsoft? Linux? WASM? PLEASE???
-
-
In C, on the other hand, you pretty much just have to manually type out additional if's every time. So you're going to always write if(Count) { int Step = Width / Count; for(int I = 0; I < Count; ++I) { // ... Step used here ... } } for no good reason.
-
Your other option is to move the Width/Count into the loop body, and count on the compiler to hoist it. Probably not a horrible way to go these days, because it usually will, but, it is not really how you want to express the code as things get more complex.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
)