Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 21st, 2006, 5:23 PM   #41
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
I was tempted to use goto in my VB programming class on this project I was doing, the teacher didnt accept b/c of that damn "goto" is not a valid statement. She said she wouldnt use them even if her teaching career was in dier need for it! To me, the thought seem good but then I said just take the advice of pros and dont use it but instead use "break".
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Feb 21st, 2006, 5:50 PM   #42
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
If one doesn't understand the lack of need for the 'goto' except in exceptional circumstances (I use the term, exceptional, advisedly), one doesn't understand programming. The normal path of a program is a logical progression from one point to another. Ocassionally a side trip is needed. Conditional statements provide for that. Ocassionally a tool or utility or object (and its methods) are needed. One calls upon them. The normal state of affairs is such that those called-upon adjuncts do their thangy and then return to the point at which they were invoked. Things roll along, things get done. Fatal errors can happen; errors which have no bearing on the point at which the program is operating, or only a minor relationship. Drastic measures may be called for. Modern language writers provide for that. 'Goto' wasn't their vehicle. Older languages require more than ordinary skills to deal with the problem if it's recalcitrant enough. One pulls out the wand and gets the rabbit from the hat. The rabbit may have goto-looking ears, but it's certainly not a given. I've never used a goto in C or C++. Why? If I'm in that kind of trouble, I'm usually under the hood finagling registers and the stack. Bad boy, bad boy, whatcha gonna do?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Feb 21st, 2006, 6:19 PM   #43
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
Quote:
Originally Posted by Ęthereal Haze
ACK!
As I Said, . It All Depends On WHat You Use It For.
-End of Story- Gah. >.<;
Now If You Will Excuse Me I Need To Finish A Project In Vb6.
You Don't Have To UsE tHe ShIfT kEY quitE sO mucH, You Know.

And I think the point DaWei and others are trying to make is twofold:

1. That there is never a good use for the goto statement
2. That you're confusing the goto statement with the gotosite function - they're two different things entirely.
Arevos is offline   Reply With Quote
Old Feb 21st, 2006, 6:23 PM   #44
Ęthereal Haze
Newbie
 
Join Date: Feb 2006
Location: -=()N-=()=-C()=-
Posts: 7
Rep Power: 0 Ęthereal Haze is on a distinguished road
Send a message via AIM to Ęthereal Haze Send a message via MSN to Ęthereal Haze Send a message via Yahoo to Ęthereal Haze
Ah.. Thankyou for clarifying this. And due to requesting that i not use the capitalization on every word, I will refrain. Thanks.. Now I am not quite so lost.. Lol!
Ęthereal Haze is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:50 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC