Quote:
Originally Posted by fysiks
it always best to stick to the "never create variables inside a loop" recommendation.
|
Variables should always be declared as close to the scope they're used in as possible, unless doing so reduces performance, which is not the case here. So leaving the static variable declaration inside the loop is the right thing to do.
__________________