View Single Post
 
Reply
Posted 2007-07-21, 04:52 PM in reply to Grav's post starting "I don't goto, man. I just don't."
Goto's are fine for some things. Having multiple level breaks in C like in PHP would practically eliminate those things though.

Here's an example with some meaningless code:
Code:
for(i = 0; i < 10; i++)
   for(j = 0; j < 10; j++)
      if(i == 4 && j == 5) break 2; /* break 2 levels out */
In real C you would have to use a goto for that, or get nasty with some boolean flags.
Old
Profile PM WWW Search
Mantralord seldom sees opportunities until they cease to beMantralord seldom sees opportunities until they cease to beMantralord seldom sees opportunities until they cease to beMantralord seldom sees opportunities until they cease to be
 
 
Mantralord