do-while vs. goto?
#9

Try digging deeper into why people decided to look for alternatives to goto. The basic encounters were much more complicated than the first one here. And more about strucuted programming.

Also, I did a small speed test which revealed that using a while loop instead of goto in a situation such as yours is about 1.3-1.4 times faster. But please do have a look yourself.

But then again, I'm not saying goto is hideous or awful. It probably is not, and I have used it myself in the past for working with large loops, but retired from doing so after seeing a famous comic.
Reply


Messages In This Thread
do-while vs. goto? - by [XST]O_x - 12.04.2013, 19:24
Re: do-while vs. goto? - by Bakr - 12.04.2013, 19:44
Re: do-while vs. goto? - by [XST]O_x - 12.04.2013, 19:49
Re: do-while vs. goto? - by Bakr - 12.04.2013, 20:03
Re: do-while vs. goto? - by [XST]O_x - 12.04.2013, 20:15
Re: do-while vs. goto? - by Bakr - 12.04.2013, 20:26
Re: do-while vs. goto? - by AndreT - 12.04.2013, 20:35
Re: do-while vs. goto? - by [XST]O_x - 12.04.2013, 20:48
Re: do-while vs. goto? - by AndreT - 12.04.2013, 21:05
Re: do-while vs. goto? - by [XST]O_x - 12.04.2013, 21:12

Forum Jump:


Users browsing this thread: 2 Guest(s)