From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] the declaration of main() From: "rob pike" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010430120601.55473199C1@mail.cse.psu.edu> Date: Mon, 30 Apr 2001 08:05:58 -0400 Topicbox-Message-UUID: 9746a910-eac9-11e9-9e20-41e7f4b1d025 All right! All right! Enough!!! I am the person who changed the definition of main. At the time, we had no plans of being compatible with anyone else's standard system. On the other hand, we avoided gratuitious incompatibility and we just plain missed the one for main. Exit was changed to exits and it was unwise not to do something about main, but it didn't cross my mind. The reason is probably that we were pushing for stronger-than-ANSI C, requiring prototypes, and I knew we needed to make some changes because a different signature for exit would cause trouble to existing programs (we changed creat to create when we added the third argument, too) but I unconsciously knew that the prototype of main wasn't in the headers and so I bet it just never crossed my mind to change it. Now please let that be the end of this discussion. This group deserves a higher signal to noise ratio. -rob