John Carmack used goto

This is a discussion on John Carmack used goto within the Game Programming forums, part of the General Programming Boards category; Now everyone will defend goto, saying 'oh well I guess sometimes it's okay to use goto, I mean it's a ...

  1. #1
    Banned
    Join Date
    Jan 2003
    Posts
    1,708

    John Carmack used goto

    Now everyone will defend goto, saying 'oh well I guess sometimes it's okay to use goto, I mean it's a very useful at certain times'.
    Attached Images Attached Images  

  2. #2
    _ Munkey01's Avatar
    Join Date
    Dec 2002
    Posts
    280
    I don't care if someone else used goto (I mean it was created for some reason...). But I do like the setup of VC++ in that picture. How do you edit syntax highlighting like that?

  3. #3
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    visual assist

    www.wholetomato.com

  4. #4
    Registered User deltabird's Avatar
    Join Date
    Jan 2003
    Posts
    73
    Already from munkey's post, goto is being more tolerated.

  5. #5
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    I'm sure he had his reasons to do it, And it would probably be the
    most wise thing to do in this situation.

    [edit]

    Besides the goto label is within the same function, No harm done.

  6. #6
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    I knew it I knew it I knew it, had it been any other person it would be a bad thing.

  7. #7
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Originally posted by Silvercord
    I knew it I knew it I knew it, had it been any other person it would be a bad thing.
    What did you expect for the Programming King of Graphics.

  8. #8
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    I still see goto as a viable usage, as long as it is used properly and with good thought process. In this case i feel it is, and in any respect, i don't care what he uses he owns everyone here :P

  9. #9
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    By the way silver dod you put that comment after it?
    Would be funny if John wrote it himself

  10. #10
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    no, i put that in myself, but i've seen some extremely strange things in his code:
    Attached Images Attached Images  

  11. #11
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    Although its not prefered practice, there's nothing technically wrong with using a goto in code like that....his code is built for speed and in the situation, an unconditional jump outside a nested loop is probably prefereable to using a variable (in memory) to set the condition whether to break out of the loop or not.....

  12. #12
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    ScreenShot

    Do you have some type of screen shot program?
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  13. #13
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640

    Re: ScreenShot

    Originally posted by Stan100
    Do you have some type of screen shot program?
    Look for a button on the keyboard called 'print screen', Ram it,
    Open up paint and choose paste.

  14. #14
    _ Munkey01's Avatar
    Join Date
    Dec 2002
    Posts
    280
    Are there any free programs that do what Visual Assist does? I don't care if it is lacking things Visual Assist has though.

  15. #15
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Originally posted by Munkey01
    Are there any free programs that do what Visual Assist does? I don't care if it is lacking things Visual Assist has though.
    What's the problem with all the screenshot programs?
    Just use print screen!

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. John Carmack on Facebook?
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 11-02-2006, 03:29 PM
  3. helpppp
    By The Brain in forum C Programming
    Replies: 1
    Last Post: 07-27-2005, 07:05 PM
  4. John Carmack is cool, he emailed me back
    By Silvercord in forum Game Programming
    Replies: 8
    Last Post: 02-12-2003, 09:20 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