Yes, I read that article many years ago.
Unfortunately, the development of languages (such as C, not just C++)
renders most of his arguments for using goto statements obsolete.
However, this is now out of the scope of this list.
Anyone who is interested may continue this discussion via e-mail.

Laurence Mee.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Joe
Programmer
Sent: 29 November 2001 14:35
To: Palm Developer Forum
Subject: RE: Compiler deadstripping valid source lines

--- Laurence Mee wrote:
> Actually, there could well be differences
> in the way the compiler generates the
> machine code.

Of course.  Unless there are very strict guidelines in
the standards, compiler writers are free to implement
language constructs however they want.  But the point
I was making is that it is ridiculous to think that
goto can "never ever ever ever" be used.

Read the paper John Marshall suggested and you'll get
a good idea of how ridiculous that statement is.  You
can find a copy Knuth's paper, "Structured Programming
with go to Statements" at
http://pplab.snu.ac.kr/courses/PL2001/papers/p261-knuth.pdf

Admittedly, it was written long before C++ "solved
every programming problem," (Oops! Now I should say
"Java") but it does provide a careful explanation of
the situations in which goto is necessary and when it
should be avoided.


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to