On Wed, 27 May 2009, Horodyski Marek (PZUZ) wrote: > This is not comparable. Exit was escape from loop without control > expression, loop with control. > Now, when mixed syntax switch and any while/for we still heve LOOP > inside switch, but EXIT no longer. > EXIT in the sense : escape from a loop. > In this case word Exit important changes. > My example for workaround : > Local lExit := .f., i := 1 > > While !lExit > ... // designate i > Switch i > Case 2 > ... // designate lExit > Loop > Case 3 > ... > Exit > Case 4 > .... > End > End > Hm, maby this is ok.. In C is to only break and continue.
Exactly. It's compatible flow control. In C 'break' interrupts the loop but also switch statements just like 'EXIT' in [x]Harbour and it's possible to use 'continue' inside switch which works like 'LOOP' in [x]Harbour. best regards, Przemek _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
