On 7 April 2014 13:44, David C Brown wrote: > Of course a GOTO can go anywhere but it actually goes to where the > programmer chooses. To continue my analogy: you can choose to drink a > whole bottle of scotch or a single measure; similarly you can GOTO a > location a thousand lines away or you can GOTO a nearby location. > Not even that, you cannot GOTO to a label outside your function in standard C -- and if you write a function that long then you deserve the pain :-) Tamas > > > On 7 April 2014 19:19, Byron Jeff wrote: > > > On Mon, Apr 07, 2014 at 01:58:44PM -0400, Peter Johansson wrote: > > > On Mon, Apr 7, 2014 at 6:44 AM, David C Brown > > wrote: > > > > > > > GOTO is evil in the same way that alcohol is evil. > > > > Using either indiscriminately and extensively will always lead to > > disaster. > > > > Used carefully and in moderation both can be beneficial. > > > > > > Also remember that break and continue are implicit GOTOs. > > > > As are all structured constructs. The difference is that break and > continue > > are GOTOs to a specific location, as opposed to a generalized GOTO, whi= ch > > can go anywhere. > > > > BAJ > > > > > > > > -p. > > > -- > > > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > > > View/change your membership options at > > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > -- > > Byron A. Jeff > > Chair: Department of Computer Science and Information Technology > > College of Information and Mathematical Sciences > > Clayton State University > > http://faculty.clayton.edu/bjeff > > -- > > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > > -- > __________________________________________ > David C Brown > 43 Bings Road > Whaley Bridge > High Peak Phone: 01663 733236 > Derbyshire eMail: dcb.home@gmail.com > SK23 7ND web: www.bings-knowle.co.uk/dcb< > http://www.jb.man.ac.uk/~dcb> > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .