redefine and kill in for loops
Jack · Thu Oct 10, 2013 12:41 pm
Consider a list l of rings or other objects.
Is it necessary to kill and redefine S in each loop step?
Code:
...
def S;
int pos;
for (pos=1; pos<=size(l); pos++)
{
s=l[pos];
}
def S;
int pos;
for (pos=1; pos<=size(l); pos++)
{
s=l[pos];
}
Is it necessary to kill and redefine S in each loop step?