RE: goto considered essential

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

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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu