This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: First Basic Program
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: "Dockeen" <dockeen at mchsi dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: 03 Mar 2003 22:18:14 -0800
- Subject: Re: First Basic Program
- References: <NCBBLKKJGBJOLDFMCKFPCEFICBAA.dockeen@mchsi.com>
"Dockeen" <dockeen at mchsi dot com> writes:
> Actually I have seen a number of folks argue with
> great vitriol that void main() is *really* the right
> way, usually based on history
Based on a history that ignores the fact that C originated in unix, an
OS which expects every program to have an int return value ?
> and that "life is
> different than standards"
In real life, there is a long list of compilers which have never
accepted 'void main'. One of those compilers is gcc, the topic of
this list.
> or the ever favorite,
> "programming to standards is industrial and I don't
> teach that in my classroom, and never will"
And programming to a tradition that originated at an industry giant,
isn't industrial? (again, people at Microsoft started 'void main'
before there was a C standard.)