Quote:
Original posted by improving
I have used goto occaisionally mainly to jump out of deepish nested loops as it avoids extra comparisons and can save a flag variable or two.That is the only use I have found for goto. I also believe that if goto is used properly it is also safe with regards to exceptions. If you jump out of a scope the destructors that need calling get called. I'm fine with that once in a while.
If you have to use gotos, this is one of the case that justify it´s use, you can change (on this case) the pure goto to use