Re: Euphoria features

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

cheers,
Derek Parnell
dparnell @ vic.bigpond.net.au
Melbourne, Australia
|----- Original Message -----
|
|> David Cuny writes:
|>
|> >3. You can leap out of block structures:
|> >
|> >    for i = 1 to 10
|> >      for j = 1 to 10
|> >        if x = 12 then
|> >          goto label:
|> >        end if
|> >      end for
|> >    label:
|> >    end for
|>


Another way of doing this is to change Eu so that blocks can be named.

   block_name:
   for i = 1 to 10
      for j = 1 to 10
        if x = 12 then
          next block_name
        end if
      end for
    end for

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

Search



Quick Links

User menu

Not signed in.

Misc Menu