Resume Next?

Mark Wieder mwieder at ahsoftware.net
Fri Mar 4 16:06:03 EST 2005


Frank-

Friday, March 4, 2005, 10:17:36 AM, you wrote:

FDEJ> I hate C, and all the "break"s that come with it...

Your bad attitude is showing <g>... learn to love the break statement.
The fall-through approach allows you to do some things that are not
(easily) doable in pascal:

switch animalType
  case "lion"
  case "tiger"
    doCaseLionOrTiger
    break
  case "koala"
    doCaseKoala -- and since koalas are a kind of bear...
  case "bear"
    doCaseBear
    break
  default
    doSomethingElse
end switch

-- 
-Mark Wieder
 mwieder at ahsoftware.net



More information about the use-livecode mailing list