From -7731276640298178178
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,314ebdf2ff957e27
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2003-04-24 11:43:45 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!newsfeed.icl.net!newsfeed.fjserv.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: Thu, 24 Apr 2003 18:43:43 +0000 (UTC)
Organization: Southfield Microcomputer SS
Lines: 32
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <0t7ovkEq14p+Ewt4@robinton.demon.co.uk>
References: <Qbvla.955$5Z2.28625@newsfep1-win.server.ntli.net>
 <RkkxdPDmqwl+Ewp6@robinton.demon.co.uk> <3E9821CE.8AC8B8C6@web.de>
 <d6651fb6.0304150039.67fdce42@posting.google.com>
 <7f2735a5.0304161119.2d516e7d@posting.google.com>
 <Lbina.6887$Y57.3348@fe05.atl2.webusenet.com>
 <d6651fb6.0304230831.57a6e4f6@posting.google.com>
 <3EA7067C.BD7A6968@unet.univie.ac.at>
Mime-Version: 1.0
Content-Type: text/plain;charset=us-ascii;format=flowed
X-Trace: mail2news.demon.co.uk 1051209823 8676 10.0.0.1 (24 Apr 2003 18:43:43 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Thu, 24 Apr 2003 18:43:43 +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 198lh7-0002Fm-00
	for mail2news@news.news.demon.net; Thu, 24 Apr 2003 18:43:42 +0000
X-Received: from localhost (localhost [[UNIX: localhost]]) by mulga.cs.mu.OZ.AU
	id EAA17525; Fri, 25 Apr 2003 04:43:35 +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-Spam-Status: No, hits=-8.4 required=5.0
	tests=EMAIL_ATTRIBUTION,MAILTO_TO_SPAM_ADDR,NOSPAM_INC,
	      REFERENCES,SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01,
	      USER_AGENT
	version=2.41
Xref: archiver1.google.com comp.std.c++:18928

In article <3EA7067C.BD7A6968@unet.univie.ac.at>, Thomas Mang 
<a9804814@unet.univie.ac.at> writes
>A point against "void main()":
>It violates the overloading rules because we'd have then 2 functions differing
>only in the return type.
>OTOH, main is special anyways, why not make it special regarding this too,
>since there is hardly an ambiguity to expect in practice........

Actually, despite what the standard may say, I do not think that main is 
a function in C++ (it is in C though a curiously overloaded one). You 
cannot call it, you cannot take its address and the user cannot overload 
it. Has the feel of an entry point with function like syntax.

We could get round many of people's quibbles with main if we wrote:

Every program running in a hosted environment has a single entry point 
called main which has the following syntax:
...


-- 
ACCU Spring Conference 2003 April 2-5
The Conference you should not have missed
ACCU Spring Conference 2004 Late April
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                       ]



