Re: voting on GOTO

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

Euler German wrote:

> Just to add that there are times when I really miss a DO CASE case 
> this ... case that ... other[wise] ... END CASE construct. But I can 
> wait. :)


This construct has been implemented in v4.0 and I'm doing some extensive testing
with it. It works very well and makes code look a lot cleaner.
eg.

   switch upper(SOMEVAL) do
       case "ME":
       case "MYSELF":
       case "I":
              foo()
              exit

       case "YOU":
       case "THEM":
             bar()              
             -- fall thru

       case "HE":
       case "SHE":
             qwerty()
            exit

       case else:
             default()

    end switch


-- 
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