Path: utzoo!utgpu!watmath!att!pacbell!ames!excelan!ames!uakari.primate.wisc.edu!ginosko!uunet!ispi!jbayer From: jbayer@ispi.UUCP (Jonathan Bayer) Newsgroups: comp.os.minix Subject: Re: No goto's please (was Re: Fixing 7K pipes again) Message-ID: <1177@ispi.UUCP> Date: 3 Oct 89 12:19:38 GMT References: <24982@louie.udel.EDU> Organization: Intelligent Software Products, Inc. Lines: 23 HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) writes: >Since terry@SUNQUEST.UUCP mentions the PASCAL programming language in a >recent article, i may add a comment to this discussion: >In C, you never need a goto, since you have the exit() system call and the >return statement. In pure PASCAL there are sitations where a goto might be >appropriate: >- terminating the program after an fatal error (as it is done by exit() ) >- leaving a procedure across several other structures (as it is done by > return) However, most versions of Pascal do provide an exit procedure, and usually provide a return procedure. Some versions also allow the return procedure to return from several procedures down (this I don't like). JB -- Jonathan Bayer Intelligent Software Products, Inc. (201) 245-5922 500 Oakwood Ave. jbayer@ispi.COM Roselle Park, NJ 07204