Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!news.funet.fi!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi) Newsgroups: comp.lang.pascal Subject: Gotos are ok (Was Re: IMPLEMENT GOTO ACROSS MODULES IN TURBO PASCAL??) Message-ID: <1991Jan10.122222.1013@uwasa.fi> Date: 10 Jan 91 12:22:22 GMT References: <11656@j.cc.purdue.edu> <7147@tekgen.BV.TEK.COM> <11661@j.cc.purdue.edu> <1991Jan10.031015.15282@cs.mcgill.ca> Organization: University of Vaasa Lines: 26 In article <1991Jan10.031015.15282@cs.mcgill.ca> einstein@cs.mcgill.ca (Michael CHOWET) writes: > > Well, not to flame or anything, but my background was kept "GOTO-free". I >was educated (and still am) in the spirit of "good programming" (whatever >*that* may be :-). And even when going through the Pascal manual I found the >GOTO statement, I didn't even bother looking at how to do this. All I saw >was a statement that was a throwback to my BASIC days on an Apple ][+, an Atari >400, or worse on our Commodore VIC-20. : You are intermixing, or rather confusing two separate issues here. Programming puritanism which is often an end itself (frequently counter-productive at that), and getting a problem solved with the available means. There is nothing wrong with using gotos in Turbo Pascal. No gotos is just a mumbo jumbo myth by programming purists. Of course it is often desirable for the sake of clarity to avoid gotos, but this stigma that has been ingrained and incantated to by the self-chosen guards of programming purity is ridiculous. Welcome to the real world where programming is needed because something needs to be performed, and where the format of code is secondary. Don't confuse the ends and means. ................................................................... Prof. Timo Salmi (Moderating at anon. ftp site 128.214.12.3) School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun