Quote:
Originally Posted by Tom Bottiglieri
Don't use that.
|
I agree you shouldn't have a need for a GoTo, but it is a fundamental programming structure and you should know it.
Most of the times a jump is needed is already dealt with by the compiler, such as in Try/Catch blocks, subroutine returns, jump tables, etc. In these cases, the compiler will generate a jump instruction in the low level language to perform a high level function.
Using a GoTo in your code tends to indicate poor coding and sloppiness. If you find you need one, review your code and try to find a better way to code it.