Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c Subject: Re: ANSI Standards Keywords: declarations, prototyping, returns Message-ID: <651@taumet.com> Date: 4 Apr 91 16:28:35 GMT References: <104@hdwr1.medar.com> Distribution: usa Organization: Taumetric Corporation, San Diego Lines: 23 jseymour@medar.com (James Seymour) writes: >1) We've been using the K&R format for function definitions... The K&R > Second Edition states that the original K&R form will be supported > at least during the "transition period". Does the ANSI standard > eliminate the original K&R format (eventually)? Yes. Non-prototype declarations are called "obsolescent" meaning that they may be illegal at some future time. >2) Parenthesis are not required for return statements, but according to > the Second Edition K&R work, they are, and will remain, acceptable. The return keyword is optionally followed by an expression, and finally by a semicolon. No expression can contain a semicolon. Adding parentheses around an expression makes it neither more nor less an expression. The parens are not part of the return statement syntax. They are redundant, not required, and not forbidden. I don't know why this keeps coming up. -- Steve Clamage, TauMetric Corp, steve@taumet.com