RE: goto considered essential
- Posted by Jason Gade <jaygade at yahoo.com> Jan 21, 2006
- 449 views
Lynn Kilroy wrote: > > Wasn't there an exit thingabobbers I saw mentioned somewhere? I thought > it would be neat to use, because it doesn't exist in QBasic, and I had > to setup escape sequences that would abort my loops by resetting > variables and stuff. Really messy and unclear. Exit looked like a > great alternative. > > Love & Friendship & Blessed Be! > Lynn Erika Kilroy Yes, there is an exit statement. It will leave the current while or for loop that you are in. It only exits one level, though. And unfortunately there is no corresponding continue statement, that would jump back to the top of the loop. -- "The author regrets that he is unable to reconcile himself to the thoughtful point of view you have expressed. However, it must be kept in mind that being raised in different cultures and different places can result in such differences of viewpoint between individuals. The author is from planet Earth." [author unknown] j.