From -4914472639670894763
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,a7bb6560624ae2c1
X-Google-Attributes: gidf78e5,public
From: Daniel <please@no.spam>
Subject: Re: More M$ Not Conforming points...
Date: 1999/08/29
Message-ID: <37C87DD6.424E070@no.spam>#1/1
X-Deja-AN: 518371998
X-NNTP-Posting-Host: pmi9.isdn.uni-leipzig.de
Content-Transfer-Encoding: 7bit
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <7ps1sg$dev$1@nnrp1.deja.com>
X-Accept-Language: de
X-UID: 0000000001
X-Status: $$$T
Content-Type: text/plain; charset=us-ascii
Organization: Uni Leipzig
Mime-Version: 1.0
Newsgroups: comp.std.c++
Originator: clamage@taumet




whbloodworth@my-deja.com schrieb:
> 
> int main (void) { }
> 
> VC++ produces the following warning:
> 
> warning C4508: 'main' : function should return a value; 'void' return
> type assumed

[snip]

another (maybe even more) funny thing:

int func (int Int)
{
	if (Int)
	{
		return 0;
	}
	throw ("I dont need a return statement!"); 
}

Visual 5 will give an error C2202 (yes, an _error_): not all branches return 
a value (or so)...

LOL!

Cheers,
Daniel
(kaeps _at_ informatik.uni-leipzig.de)


[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]




