James Cameron wrote: > > Paul B. Webster VK2BZC wrote: > > When I was taught "C", one of the big plus-es (this was before C++ ;-) > > was the lack of a "goto" statement. I suspect tutors/ lecturers still > > wax lyrical on this. > > Um, C has a "goto". Are you thinking of PASCAL? > > main() > { > loop: > thing(); > goto loop; > } > > Admittedly you don't often _need_ to use a "goto". > > main() > { > while(1) thing(); > } > > But I think it is not as evil as setjmp() and longjmp(). > > -- > James Cameron (cameron@stl.dec.com) > > OpenVMS, Linux, Firewalls, Software Engineering, CGI, HTTP, X, C, FORTH, > COBOL, BASIC, DCL, csh, bash, ksh, sh, Electronics, Microcontrollers, > Disability Engineering, Netrek, Bicycles, Pedant, Farming, Home Control, > Remote Area Power, Greek Scholar, Tenor Vocalist, Church Sound, Husband. > > "Specialisation is for insects." -- Robert Heinlein. Ahem. Pascal (at least some implementations!) has a Goto, as well. Turbo Pascal, for example (I don't remember if the UW's CDC Cyber type Pascal has one, as I have a printout of the source somewhere I could go look someday but that's in storage ) The mere existence of something doesn't make it evil IMHO; MISUSE of that thing, does. I don't do Basic, for this reason Mark