Re: Good Use of GOTO

new topic     » goto parent     » topic index » view thread      » older message » newer message

Lucius L. Hilley III wrote:

> for t=1 to 10 next
>   if a then
>     goto "t_continue"
>   else
>     -- code
>   end if
>   label "t_continue"
> end for

Good job, Lucius! :) This solidifies my opinion that GOTO is unnecessary.
The example just using 'continue' is cleaner, and it's probably faster
without GOTO (one less jump?).

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu