On 1/23/06, Tinnus <[EMAIL PROTECTED]> wrote:
> > you have 100% control of the device when your app is running; so, if you
> > choose never to exit; then, your application wont. change the while loop
> > to say while (true); and you'll find no matter what you do you cannot exit
> > the app
>
>  do {
>      break;
>  } while(true)

i was referring to what you as a user; but, yes - if your stupid enough to
put a break like that in your while loop; you shouldn't be coding in the
first place. the best solution is to do this:

APP_LOOP:
{
}
goto APP_LOOP;

gotta love goto :) i remember doing case testing back in 1994-5; and, i
had 17 while loops nested (lots of params to test brute force style). the
borland compiler could handle 16 loops. so; i had to rewrite the loops
using a series of smart labels and goto statements.

long live the goto statement *cheers*

--
// Aaron Ardiri

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to