Path: utzoo!attcan!uunet!decwrl!sgi!davea@quasar.wpd.sgi.com From: davea@quasar.wpd.sgi.com (David B.Anderson) Newsgroups: comp.sys.sgi Subject: Re: 3.3 C Weirdness Message-ID: <70328@sgi.sgi.com> Date: 26 Sep 90 15:25:00 GMT References: <761@sun13.scri.fsu.edu> <70109@sgi.sgi.com> <803@sun13.scri.fsu.edu> Sender: guest@sgi.sgi.com Reply-To: davea@quasar.UUCP (David B.Anderson) Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 19 In article <803@sun13.scri.fsu.edu> pepke@gw.scri.fsu.edu (Eric Pepke) writes: >In article <70109@sgi.sgi.com> davea@quasar.wpd.sgi.com (David B.Anderson) >writes: >> b) the resulting code will defininitely >> not work on our machines if one has >> int x(float); >> int x(y) float y; { } > >Strange. I have 15,000 lines of code with stuff like this out the wazoo, >and it seems to work fine. Of course, the prototype is visible when the >function is defined. Perhaps the compiler does the sensible thing in >spite of whining about it. Yes, you are quite right. My mistake. However it's still not a good idea to do this, since it is a clear violation of the ANSI C standard. {Apologies for the earlier misinformation....} [ David B. Anderson Silicon Graphics (415)335-1548 davea@sgi.com ] [``What can go wrong?'' --Calvin and Hobbes]