Re: weird behavior of algbraic evaluation in concatenated operators

From: Alf P. Steinbach (alfps_at_start.no)
Date: 07/03/04


Date: Sat, 03 Jul 2004 05:18:30 GMT


* "Robbie Hatley" <lonewolfintj at pacbell dot net>:
>
> "Mike Wahler" <mkwahler@mkwahler.net> wrote in message news:W%eFc.2175$oD3.110@newsread1.news.pas.earthlink.net...
> > "Prateek R Karandikar" <kprateek88@yahoo.com> wrote in message
> > news:cc3t4d$pk6@odak26.prod.google.com...
> > > dejan budimir wrote:
> > > > hi there!
> > > >
> > > > #include <iostream>
> > > > using namespace std;
> > > >
> > > > void main(){
> > >
> > > Illegal. main returns int. This should result in a diagnostic. Throw
> > > away any compiler that compiles such code.
> >
> > My car will allow me to drive it at high
> > speed into a utility pole. Should I throw
> > my car away? :-)
>
> My slightly-off-topic reply is...
>
> Yes.

It so happens that Visual C++ is one of those void main compilers.

I wouldn't recommend throwing it away.

If one were to throw away every compiler that doesn't conform to the HS
in some way or other, then one would be left with exactly 0 compilers
(or depending on the definition of conformance, only Comeau).

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

Quantcast