Today, I used goto to double-break out of nested loops
-
You've heard me in the car with Mrs Yoda then. All though you're missing the "For God's sake Brake." from the end.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
-
"and I feel fine!" (to say it with R.E.M.)
Agh! Reality! My Archnemesis![^]
| FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchySomewhere, God killed a kitten, AND IT'S ALL YOUR FAULT! ;)
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
"and I feel fine!" (to say it with R.E.M.)
Agh! Reality! My Archnemesis![^]
| FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchyI guess I'd move the nested loops into a separate function and called return instead, but that's really goto in disguise anyway :)
-
You've heard me in the car with Mrs Yoda then. All though you're missing the "For God's sake Brake." from the end.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
So you're not Shiney Happy People then?
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
-
You've heard me in the car with Mrs Yoda then. All though you're missing the "For God's sake Brake." from the end.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
-
He said "break" not "goto"... :)
I wasn't, now I am, then I won't be anymore.
-
Dalek Dave wrote:
I am not the only one then!
yes you are. :-D
-
Somewhere, God killed a kitten, AND IT'S ALL YOUR FAULT! ;)
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
I guess I'd move the nested loops into a separate function and called return instead, but that's really goto in disguise anyway :)
There are those who think a function should have a single
return
- I'm not one of them. I would probably do it your way - it's clearer than the "brain bounce" I get when I seegoto
in OO code.Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
-
"and I feel fine!" (to say it with R.E.M.)
Agh! Reality! My Archnemesis![^]
| FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchyooo sorry there will be a serious reduction of man-points and you may be reduced to writing VB code in the near future.
Artificial Intelligence is no match for Natural Stupidity. http://www.hq4thmarinescomm.com[^] My Site
-
mmm, Kitten Stew. On second thought... X|
I wasn't, now I am, then I won't be anymore.
-
Somewhere, God killed a kitten, AND IT'S ALL YOUR FAULT! ;)
A guide to posting questions on CodeProject[^]
Dave KreskowiakShe had terminal cancer, and that's HIS fault.
Agh! Reality! My Archnemesis![^]
| FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy -
No. Have I missed soemthing?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
You're a dirty little pervert! Somewhere Edsger Dijkstra's is choking on a Raise Error statement!
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
It's the only action he'll get tonight.
Agh! Reality! My Archnemesis![^]
| FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy -
No. Have I missed soemthing?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
ooo sorry there will be a serious reduction of man-points and you may be reduced to writing VB code in the near future.
Artificial Intelligence is no match for Natural Stupidity. http://www.hq4thmarinescomm.com[^] My Site
Mike Hankey wrote:
reduced to writing VB
Oh shiioot... is that what happened? But I swear it was in a
switch
! :sigh: -
I guess I'd move the nested loops into a separate function and called return instead, but that's really goto in disguise anyway :)
That's what I'd have done too. You're allowed to do stuff like that! :)
-
"and I feel fine!" (to say it with R.E.M.)
Agh! Reality! My Archnemesis![^]
| FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchySo you're the one responsible the north korean attacks today... Shame on you!
-
Mike Hankey wrote:
reduced to writing VB
Oh shiioot... is that what happened? But I swear it was in a
switch
! :sigh:PIEBALDconsult wrote:
Oh shiioot... is that what happened? But I swear it was in a switch!
It's like wearing a pocket protector, once your caught wearing it your labeled and there's no turning back.
Artificial Intelligence is no match for Natural Stupidity. http://www.hq4thmarinescomm.com[^] My Site