472,119 Members | 1,308 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

what is wrong with the goto command?

Can anyone tell me what is wrong with the goto command. I noticed it is one
of those NEVER USE.

I can understand that it may lead to confusing code, but I often use it like
this:

is this wrong?????

Function x
select case z
case 1
goto one
case 2
goto two
case else
goto three
end select
exitFunction:
exit funtion
one:
.....
goto exitFunction
two:
.................
goto exitFunction
three:
................
goto exitFunction
end function
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.698 / Virus Database: 455 - Release Date: 02/06/2004
Nov 13 '05
51 13062
Larry Linson wrote:
I am in the "Judicious Use" camp. Unfortunately, my "Judicious Use" criteria
of "so rare that it's almost never" is not universally shared. <SIGH>

(Still wondering whatever happened to "That Thar Jaysmith", and a few others
from the "olden days".)


I miss him, he was funny. Another I remember, can't remember his exact
name but once referred to as "Whacky Go" (Weiqi Gao or something like
that) and of course Robin "Have fun" Stoddard Stones, who is the only
person on this ng I've met IRL as he used lived about 3 miles from me,
I've just moved about 3 weeks ago into the sticks with the country bumpkins.

--
Error reading sig - A)bort R)etry I)nfluence with large hammer
Nov 13 '05 #51
GENERAL THANK YOU

Thank you all for those that just keep on replying to the what is wrong with
the goto command!

I have read/skimmed through all the messages. It seems a very interesting
topic!

Thank you once more. One day, once you guys have taught me some of finer
points in programming I hope to be able to spread the word myself.

For now, if anyone has an easy question, please do not hesitate to ask.

Happy keyboarding.

- Nicolaas
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.703 / Virus Database: 459 - Release Date: 10/06/2004
Nov 13 '05 #52

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.