Page 1 of 1

a little help if possible

PostPosted: Fri Nov 07, 2008 6:21 am
by J.
was wondering if anyone could help me get a grip on an article

http://www.ecn.purdue.edu/ParaMount/pap ... 68goto.pdf

i cant figure out from it why he considers the goto statement to be harmful, if anyone could give me a hint or some help it would be greatly appreciated and i will give you a cake and a cup of tea or if your american a cup of coffee and a doughnut :P

Re: a little help if possible

PostPosted: Fri Nov 07, 2008 7:31 am
by Brett_Henderson
A simple "go to", though it is usually preceded by some sort of condition (if, then, else), is an open-ended path through the flow-chart. It's like sending your child out into the world, hoping for the best.

The module of code in control shouldn't just let the process stray off on its own (unless that module has completed its task) ("go to" is ok as the last command in a module).

The better way to hande "go to" (and you see it better in a flow-chart), is something like,

Re: a little help if possible

PostPosted: Fri Nov 07, 2008 10:38 am
by J.
wow thankyou very much brett :)

Re: a little help if possible

PostPosted: Fri Nov 07, 2008 3:53 pm
by Mushroom_Farmer
Purdue: 'Nuff said! ;D