Everybody says that goto is notorious to being obsecure
Never heard anyone say that. Whatever that means.
1 2 3 4 5 6 7 8 9 10 11 12 13
void function( MyClass* p, MyClass* q ) {
MyClass* ptr = p ;
for ( ; ; )
{
// do many things with *ptr, p and q
if ( ptr == p )
ptr = q ;
elsebreak ;
}
}