Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. COTD: The dangers of GOTO

COTD: The dangers of GOTO

Scheduled Pinned Locked Moved The Lounge
c++htmlcomarchitecture
12 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Chris Maunder

    GOTO[^]

    cheers, Chris Maunder

    CodeProject.com : C++ MVP

    M Offline
    M Offline
    Matthew Faithfull
    wrote on last edited by
    #3

    I'm really glad he didn't use goto.net. Being non deterministically destructed by a managed veloceraptor is just to horrible to contemplate.:-D

    Nothing is exactly what it seems but everything with seems can be unpicked.

    1 Reply Last reply
    0
    • C Chris Maunder

      GOTO[^]

      cheers, Chris Maunder

      CodeProject.com : C++ MVP

      J Offline
      J Offline
      Jon Sagara
      wrote on last edited by
      #4

      So glad I had already finished my coffee before reading that. :laugh:

      Jon Sagara This is the stuff we'll drink on special occasions. To paraphrase my father-in-law, this is the kind of wine that results in kids. -- A friend Blog | Site | Articles

      P 1 Reply Last reply
      0
      • M Malcolm Smart

        I suppose I will lose my gold status now..... Repost![^]

        "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

        J Offline
        J Offline
        JimmyRopes
        wrote on last edited by
        #5

        Malcolm Smart wrote:

        I suppose I will lose my gold status now.....

        What gold status. Have you checked your status lately? :doh: Additionally, you will be stripped of your gold epaulets, your sword broken and you are banished from the kingdom! :~

        Simply Elegant Designs JimmyRopes Designs
        Think inside the box! ProActive Secure Systems
        I'm on-line therefore I am. JimmyRopes

        E 1 Reply Last reply
        0
        • J Jon Sagara

          So glad I had already finished my coffee before reading that. :laugh:

          Jon Sagara This is the stuff we'll drink on special occasions. To paraphrase my father-in-law, this is the kind of wine that results in kids. -- A friend Blog | Site | Articles

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #6

          Jon Sagara wrote:

          I had already finished my coffee before reading that.

          I was between swigs of coffee. I remember my high school BASIC (old Apple IIe's :rolleyes:) teacher docking points for the use of GOTO's.

          "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

          T 1 Reply Last reply
          0
          • P Paul Conrad

            Jon Sagara wrote:

            I had already finished my coffee before reading that.

            I was between swigs of coffee. I remember my high school BASIC (old Apple IIe's :rolleyes:) teacher docking points for the use of GOTO's.

            "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

            T Offline
            T Offline
            Tim Carmichael
            wrote on last edited by
            #7

            When I was in college taking COBOL, there was only one instance where we were allowed to use a GOTO. One teacher would give you a 0 (zero) on the assignment if he found a GOTO that didn't need to be there. Tim

            B 1 Reply Last reply
            0
            • J JimmyRopes

              Malcolm Smart wrote:

              I suppose I will lose my gold status now.....

              What gold status. Have you checked your status lately? :doh: Additionally, you will be stripped of your gold epaulets, your sword broken and you are banished from the kingdom! :~

              Simply Elegant Designs JimmyRopes Designs
              Think inside the box! ProActive Secure Systems
              I'm on-line therefore I am. JimmyRopes

              E Offline
              E Offline
              ednrgc
              wrote on last edited by
              #8

              See ???? It works that fast!!!!!!!

              1 Reply Last reply
              0
              • C Chris Maunder

                GOTO[^]

                cheers, Chris Maunder

                CodeProject.com : C++ MVP

                M Offline
                M Offline
                Member 96
                wrote on last edited by
                #9

                Ahh.. a rare repost from the top. :)


                "I don't want more choice. I just want better things!" - Edina Monsoon

                S 1 Reply Last reply
                0
                • T Tim Carmichael

                  When I was in college taking COBOL, there was only one instance where we were allowed to use a GOTO. One teacher would give you a 0 (zero) on the assignment if he found a GOTO that didn't need to be there. Tim

                  B Offline
                  B Offline
                  baloneyman
                  wrote on last edited by
                  #10

                  All my GOTOs need to be there...

                  P 1 Reply Last reply
                  0
                  • B baloneyman

                    All my GOTOs need to be there...

                    P Offline
                    P Offline
                    Paul Conrad
                    wrote on last edited by
                    #11

                    I was thinking all GOTO statements should go to a /dev/nul on some Linux box sitting on the dark side of the Moon :rolleyes:

                    "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                    1 Reply Last reply
                    0
                    • M Member 96

                      Ahh.. a rare repost from the top. :)


                      "I don't want more choice. I just want better things!" - Edina Monsoon

                      S Offline
                      S Offline
                      Steve Floyd
                      wrote on last edited by
                      #12

                      It never was about the GOTO. It is really the Come-From that gets you in trouble... There is a one-to-many relationship there that makes it hard to go backwards. srf

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups