The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

goto by perldude2002-06-11 09:00:28
  There are several cases where goto is appropriate. by Yohimbe2002-06-11 09:19:09
    Yep. KnR said so themselves... by Tars_Tarkas2002-06-11 09:30:33
      in which case... by Epiphany02002-06-11 09:36:39
        Won't work for ***NESTED*** loops by HadEnuf 2002-06-11 09:50:01
A 'break' or 'continue' only exits/repeats the _immediately_ _enclosing_ _loop_.

The only way to break out of multiple, *NESTED* loops, without inventing 'artificial'[1] control variables for the purpose, in 'C', is to use 'goto'.
---
[1] Dictated by the structure of the implementation language, rather than by the problem domain.
--
HadEnuf?
[ Reply ]
          I'll C you in Heck! by perldude2002-06-11 09:57:17
            <Deleted><Deleted>2003-10-23 17:58:32
              I guess I'm chicken too (n/t) by nawft2002-06-11 13:18:52
                Too late! by Naruki2002-06-11 13:24:49
                  actually by nawft2002-06-11 13:30:22
                    Don't worry about Nea getting mad... by Naruki2002-06-11 16:59:05
                      I still get mad by Nea2002-06-11 17:25:51
                        Naughty naughty. by Naruki2002-06-11 19:05:05
                          I thought it was well established... by Nea2002-06-11 20:15:23
                      I don't think I can be a dawn greeter by nawft2002-06-11 23:22:54
            Nah, Phil[1] and I don't get along! by HadEnuf2002-06-11 10:11:36
          already been covered (n/t) by Epiphany02002-06-11 10:00:15

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)