Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!udel!mmdf
From: HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen)
Newsgroups: comp.os.minix
Subject: Re: No goto's please (was Re: Fixing 7K pipes again)
Message-ID: <24982@louie.udel.EDU>
Date: 3 Oct 89 08:58:47 GMT
Sender: mmdf@udel.EDU
Lines: 16

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)

If you don't want to code a goto in such a situation (in PASCAL), there are
Situtations where the code gets more obscure in my opinion.

Nevertheless, in C there are exit and return which are better than goto's.

Christoph van Wuellen, Bochum.