This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: First Basic Program


"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.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]