3 ms·
That's not unrestricted though -- control returns to the caller after the end of the function. With goto that's not guaranteed to be the case -- that was the s
by coldtea 9y ago
That's not unrestricted though -- control returns to the caller after the end of the function.
With goto that's not guaranteed to be the case -- that was the spaghetti part.
- zzzcpan 9y agoNo, that's not a restriction, but just a behavior. It doesn't keep you from jumping all over the place and modifying shared state by calling methods within methods. You can only use conventions to have some restrictions and structure here. Just like with goto.