Re: goto: it's conceded

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

David Cuny wrote:
> Well, sometimes you're nested deep, and you need to get out. Implementing it
> 
> without GOTO is messy and error prone. With GOTO, it's clear
> what's happening and it executes as expected.

We can now do this (in V4.0) ...

   while cond1 label "toplevel" do
      . . .
      while cond2 do
       . . .
         while cond3 label "anotherpoint" do
           . . .
            while cond4 do
              . . .
              if abc then
                  exit "toplevel"
              else
                  continue "anotherpoint"
              end if
            end while
        end while
     end while
   end while

-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

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

Search



Quick Links

User menu

Not signed in.

Misc Menu