From -6579839201806719503
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,314ebdf2ff957e27
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2003-04-11 11:50:42 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!195.40.4.120.MISMATCH!easynet-quince!easynet.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: francis.glassborow@ntlworld.com (Francis Glassborow)
Newsgroups: comp.std.c++
Subject: Re: Why int main()?
Date: Fri, 11 Apr 2003 18:50:42 +0000 (UTC)
Organization: Southfield Microcomputer SS
Lines: 22
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <RkkxdPDmqwl+Ewp6@robinton.demon.co.uk>
References: <Qbvla.955$5Z2.28625@newsfep1-win.server.ntli.net>
Mime-Version: 1.0
Content-Type: text/plain;charset=us-ascii;format=flowed
X-Trace: mail2news.demon.co.uk 1050087042 29419 10.0.0.1 (11 Apr 2003 18:50:42 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Fri, 11 Apr 2003 18:50:42 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.12)
	id 1943bk-0007eM-00
	for mail2news@news.news.demon.net; Fri, 11 Apr 2003 18:50:41 +0000
X-Received: from localhost (localhost [[UNIX: localhost]]) by mulga.cs.mu.OZ.AU
	id EAA22209; Sat, 12 Apr 2003 04:50:38 +1000 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ucar.edu
X-Reply-To: Francis Glassborow <francisG@robinton.demon.co.uk>
X-Newsgroups: comp.std.c++
X-User-Agent: Turnpike/6.02-U (<TilyaeicE$WmMOP9F8P4$y3lmP>)
X-Spamscanner: mailbox4.ucsd.edu  (v1.2 Mar 17 2003 15:04:36, -0.1/5.0 2.43)
X-MailScanner: PASSED (v1.2.7 74922 h3BIYjbn084783 mailbox4.ucsd.edu)
X-Spam-Status: No, hits=-8.6 required=5.0
	tests=NOSPAM_INC,REFERENCES,SIGNATURE_SHORT_DENSE,
	      SPAM_PHRASE_00_01,USER_AGENT
	version=2.41
Xref: archiver1.google.com comp.std.c++:18739

In article <Qbvla.955$5Z2.28625@newsfep1-win.server.ntli.net>, Huw Ford 
<Huw@Tesco.net> writes
>A lot of compilers will accept "void main()" so why must main return an int?

Because Standards are about portability. It is easy for a system to 
ignore a return value when it does not need one, it is much harder to 
create one where it is needed and none has been provided.



-- 
ACCU Spring Conference 2003 April 2-5
The Conference you cannot afford to miss
Check the details: http://www.accuconference.co.uk/
Francis Glassborow      ACCU

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



