do-while vs. goto?
#5

Quote:
Originally Posted by Bakr
Посмотреть сообщение
They are not alike at all really. pawn-lang.pdf is a GREAT resource!
I realise that their definition is not the same and that they were not practically made for the same purpose, but I wanted to see the differences between "loops" that are made with jump statements and loops that are made using while/do-while.
I mean, in Assembly, the only loops you can do are actually conditioned jump statements, that rely on flag states.
My point was, you can basically do most of the loops you do with while/do-while using goto. (EVEN THOUGH they are not meant to serve the same purposes)
And the questions that come up from it - would it be the same? Slower? Faster? Code-wise - would it be better?
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: 3 Guest(s)