Re: GOTO

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

Lucius L. Hilley III wrote:


> integer exit_flag
>
> exit_flag = 0
> for A = 1 to 50 do
>  for B = 1 to 30 do
>    for C = 1 to 75 do
>      if get_key() != -1 then
>        exit_flag = 1
>        exit(A)-- or exit[A]
>      end if
>    end for
>  end for
> end for

This will only exit the innermost loop (C).

> Do you want GOTO?

  Not necessarily.


> Do you think it should be limited to only 1 GOTO per LABEL?

  No.

> Do you think it should ONLY go forward?

  Yes.

> Do you think you should NOT be able to jump into program BLOCKS?

  Yes.

> Do you think you should be allowed to jump out of program BLOCKS?

  Yes - otherwise, there would be little use for it.

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu