Someone used a goto...

This is a discussion on Someone used a goto... within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hey guys, quietly so we don't frighten anyone, but someone here is using a goto , it's true, look... http://cboard.cprogramming.com/showt...threadid=33368...

  1. #1
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831

    Someone used a goto...

    Hey guys, quietly so we don't frighten anyone, but someone here is using a goto , it's true, look...

    float; double; int
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    [hushed] I thought that was a myth! [/hushed]

  3. #3
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    *cough*aaaaarrrgggghhhh!!!!*cough*
    The knack of flying is learning to throw yourself at the ground and miss.

  4. #4
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    Hmmm. I hope the poster of that thread was not taught to do so...

  5. #5
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    Yeah...he should goto....*ahem*
    enough said
    The knack of flying is learning to throw yourself at the ground and miss.

  6. #6
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    I wonder why C++ was equiped with a goto statement anyway,
    I mean it's totally wothless, it's bad code.

  7. #7
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    Propably for people who want's a (bad) easy way out
    The knack of flying is learning to throw yourself at the ground and miss.

  8. #8
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Ya know... I never thought I'd need a goto statement either, but I actually used one the other day. It's not in a loop or anything... I just jump past some code with it. I didn't feel like using a giant if statement.
    EntropySink. You know you have to click it.

  9. #9
    Registered User Cela's Avatar
    Join Date
    Jan 2003
    Posts
    362
    >>I wonder why C++ was equiped with a goto statement anyway, I mean it's totally wothless, it's bad code.
    Why is it bad code? I mean if you think about it, the most contrived language out there, Ada, has goto. If it were really that bad then why do all these languages have it? If goto is the most natural solution then that's what you should use, I don't see what all the fuss is about. :-)
    *Cela*

  10. #10
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    C++ retains the goto for backward compatibility. I don't know what ADA's excuse is. ADA is a mess isn't it.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  11. #11
    Registered User Cela's Avatar
    Join Date
    Jan 2003
    Posts
    362
    >>ADA is a mess isn't it.
    You can say that again :-)
    *Cela*

  12. #12
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    What a rare sight indeed! I've only ever seen them in captivity... these wild ones look quite a bit more fierce.



    Hmm...
    Has anyone ever seen the commercial with the miniture house hippos in it? If only one were made about goto...

  13. #13
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    [Crocodile Hunter voice]

    Crikey, she's beauuuuutiful!

  14. #14
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Originally posted by adrianxw
    C++ retains the goto for backward compatibility.
    With BASIC? euhm...no

  15. #15
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> With BASIC? euhm...no

    With C
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. temperature sensors
    By danko in forum C Programming
    Replies: 22
    Last Post: 07-10-2007, 07:26 PM
  2. goto command
    By jhwebster1 in forum C Programming
    Replies: 3
    Last Post: 02-21-2006, 11:32 AM
  3. Does goto have a glitch or...?
    By Blackroot in forum C++ Programming
    Replies: 9
    Last Post: 02-18-2006, 09:40 AM
  4. helpppp
    By The Brain in forum C Programming
    Replies: 1
    Last Post: 07-27-2005, 07:05 PM
  5. Need some help with a basic tic tac toe game
    By darkshadow in forum C Programming
    Replies: 1
    Last Post: 05-12-2002, 04:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21