Re: Why the f*ck do you for instance do things like this?
Re: Why the f*ck do you for instance do things like this?
Posted Dec 30, 2014 21:12 UTC (Tue) by filipjoelsson (guest, #2622)In reply to: Re: Why the f*ck do you for instance do things like this? by ldo
Parent article: The "too small to fail" memory-allocation rule
Then don't use a for-loop for that. Use a do-while-loop. A for-loop is for iterating until a certain condition is met. The compiler is built to warn on relevant error patterns. Since you use the for-loop in this unexpected way - no one but you can contribute to your project. In effect it's only so much dead code.
Is there any construct that you use as intended?