The_Sage & void main()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Greg Comeau

    #91
    Re: The_Sage & void main()

    In article <044fnvohrorgrq m7d1gbe49n49jmn 1mkqj@4ax.com>,
    The_Sage <theeSage@azrmc i.net> wrote:[color=blue][color=green]
    >>Reply to article by: comeau@panix.co m (Greg Comeau)
    >>Date written: 27 Sep 2003 20:09:04 -0400
    >>MsgID:<bl58r0 $e1n$1@panix1.p anix.com>[/color]
    >[color=green][color=darkred]
    >>>.... listed all the C and
    >>>C++ compilers that used void main() in BOTH C and C++. In fact, if you could
    >>>learn to click on the link they gave to Microsoft, you would see where
    >>>Microsofts online documenation for their C++ compiler uses void main().[/color][/color]
    >[color=green]
    >>Yes, but the problem is that you have to also define the
    >>context of such uses, as I clearly explained in another message.
    >>For instance, with Comeau C++, if I have:[/color]
    >[color=green]
    >>//voidmain.cpp, this is supposed to be Standard C++ code
    >>void main()
    >>{
    >>}[/color]
    >
    >No, that is your belief, not what the standard states. You aren't the standard
    >so it doesn't matter what you believe.[/color]

    So coming full circle, you are not the standard either,
    so it doesn't matter what you believe.

    And for that matter, none of the vendors who reject the
    code in strictly conforming mode aren't the standard either,
    so it doesn't matter what they believe and have implemented.

    That said, actually, I can argue that I and the other vendors
    are the standard, since we wrote it.
    [color=blue]
    >I like void main() and I hope all the major compiler manufacturers
    >continue to provide it for their customers like me.[/color]

    And no doubt they will. Certainly we will continue to support
    it with Comeau C++. However, as I said, if we're talking about
    a strictly conforming hosted situation, we will continue to
    issue a diagnostic, by default. And the other compilers you
    mention no doubt will continue to issue a diagnostic in that
    mode too. In Comeau, we actually let you disable this
    diagnostic even in strict mode, but to be honest, making
    such a run would be super super rare.
    [color=blue]
    >Like I pointed out to poor little David,
    >there is no point in returning anything from main()
    >since once you exit main(),
    >that's it -- there is nothing to read your int.[/color]

    That need not be so. Among many other situations, we write
    UNIX and Windows programs all the time that reads it.
    That's why it's there, some programs do want to read it.
    Of course, some may not care.
    --
    Greg Comeau/4.3.3:Full C++03 core language + more Windows backends
    Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout
    World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
    Comeau C/C++ with Dinkumware's Libraries... Have you tried it?

    Comment

    • Attila Feher

      #92
      Re: The_Sage &amp; void main()

      The_Sage wrote:[color=blue]
      > continue to provide it for their customers like me. Like I pointed
      > out to poor little David, there is no point in returning anything
      > from main() since once you exit main(), that's it -- there is nothing
      > to read your int.[/color]


      You are pathetic! Look at the Chapter 28 of the C++ standard and tell me
      what it writes about the main function. Unless you do so I have to conslude
      that you have no clue about C++ and you do not have the standard and all you
      do is lie.

      --
      Attila aka WW


      Comment

      • Attila Feher

        #93
        Re: The_Sage &amp; void main()

        The_Sage wrote:
        [SNIP][color=blue][color=green]
        >> You still did not answer the question! Read and tell what Chapter
        >> 28 of the C++ standard says about the main function. If you don't,
        >> we will all know you are a clueless idiot - to use your words.[/color]
        >
        > Don't change the subject, especially when the issue now is if you can
        > even read or not.[/color]

        I am not changing the subject. Look at the Chapter 28 of the C++ standard
        and tell me what it writes about the main function. Unless you do so I have
        to conslude that you have no clue about C++ and you do not have the standard
        and all you do is lie.
        [color=blue]
        > The sentence in question taken from the standard
        > clearly was talking about the return type, not the parameters.[/color]

        I don't care about your misguided opinions. Look at the Chapter 28 of the
        C++ standard and tell me what it writes about the main function. Unless you
        do so I have to conslude that you have no clue about C++ and you do not have
        the standard and all you do is lie.
        [color=blue]
        > If you can't tell the difference between a return type and
        > parameter, you have lost all credibility.[/color]

        And since I can, I did not. Look at the Chapter 28 of the C++ standard and
        tell me what it writes about the main function. Unless you do so I have to
        conslude that you have no clue about C++ and you do not have the standard
        and all you do is lie.
        [color=blue]
        > In other words, you are a joke when it comes to
        > discussing anything at all about any computer language.[/color]

        Then laugh and look at the Chapter 28 of the C++ standard and tell me what
        it writes about the main function. Unless you do so I have to conslude that
        you have no clue about C++ and you do not have the standard and all you do
        is lie.
        [color=blue]
        > Why don't you try comp.lang.begin ning.programmin g where you will fit
        > right in?[/color]

        Because unlike you, I know there is no such newsgroup. So instead of coming
        up lame and pathetic attempts to joke, look at the Chapter 28 of the C++
        standard and tell me what it writes about the main function. Unless you do
        so I have to conslude that you have no clue about C++ and you do not have
        the standard and all you do is lie.
        [color=blue]
        > Once again, the sentence in question that is clearly and obviously
        > speaking about the RETURN TYPE (see if you can catch it this time
        > 'round)...[/color]

        I don't care about your misguided opinions. Look at the Chapter 28 of the
        C++ standard and tell me what it writes about the main function. Unless you
        do so I have to conslude that you have no clue about C++ and you do not have
        the standard and all you do is lie.
        [color=blue]
        > 3.6.1 Main function paragraph 2:
        > "It shall have a return type of type int
        > -->BUT<--
        > otherwise its type is implementation-defined"[/color]


        I don't care about your misguided opinions. Look at the Chapter 28 of the
        C++ standard and tell me what it writes about the main function. Unless you
        do so I have to conslude that you have no clue about C++ and you do not have
        the standard and all you do is lie.

        --
        Attila aka WW


        Comment

        • Randall Hyde

          #94
          Re: The_Sage &amp; void main()


          "Greg Comeau" <comeau@panix.c om> wrote in message news:bl8lue$93d $1@panix1.panix .com...[color=blue][color=green]
          > >
          > >See, I just don't know what that has to do with parameters. It never
          > >mentions the word. Nor have I noticed anyone else using that word
          > >(other than you). So perhaps you could elaborate a bit?[/color]
          >
          > "its" above is main, so the sentence with substitution is:
          >
          > "main shall have a return type of type int
          > otherwise main's type is implementation-defined"
          >
          > Note that the type of a function involves its parameters' types.
          > Note also that the return type of a function is not its type.[/color]

          IOW, he is confusing the function's signature with its return type?
          Okay, *now* I understand. If only he had stuck "int argc, char** argv"
          in there someplace, his compiler would have issued the appropriate
          diagnostics :-)
          Cheers,
          Randy Hyde


          Comment

          • Mike Wahler

            #95
            Re: The_Sage &amp; void main()

            "The_Sage" <theeSage@azrmc i.net> wrote in message
            news:044fnvohro rgrqm7d1gbe49n4 9jmn1mkqj@4ax.c om...[color=blue][color=green]
            > >Reply to article by: comeau@panix.co m (Greg Comeau)
            > >Date written: 27 Sep 2003 20:09:04 -0400
            > >MsgID:<bl58r0$ e1n$1@panix1.pa nix.com>[/color]
            >[color=green][color=darkred]
            > >>.... listed all the C and
            > >>C++ compilers that used void main() in BOTH C and C++. In fact, if you[/color][/color][/color]
            could[color=blue][color=green][color=darkred]
            > >>learn to click on the link they gave to Microsoft, you would see where
            > >>Microsofts online documenation for their C++ compiler uses void main().[/color][/color]
            >[color=green]
            > >Yes, but the problem is that you have to also define the
            > >context of such uses, as I clearly explained in another message.
            > >For instance, with Comeau C++, if I have:[/color]
            >[color=green]
            > >//voidmain.cpp, this is supposed to be Standard C++ code
            > >void main()
            > >{
            > >}[/color]
            >
            > No, that is your belief, not what the standard states. You aren't the[/color]
            standard

            [color=blue]
            > so it doesn't matter what you believe.[/color]

            Really? If you'd stop to do a bit of research before
            running your mouth, perhaps you'd realize that Greg
            is one of the authors of the standard. I suspect he
            does know what the words therein mean. The above isn't
            his 'belief', but *fact*.


            -Mike


            Comment

            • Duane

              #96
              Re: The_Sage &amp; void main()

              > Really? If you'd stop to do a bit of research before[color=blue]
              > running your mouth, perhaps you'd realize that Greg
              > is one of the authors of the standard. I suspect he
              > does know what the words therein mean. The above isn't
              > his 'belief', but *fact*.[/color]

              So far he's ignored comments by Herb Sutter, Andrew Koenig, Greg Comeau and
              quotes from
              Bjarn Stroustrup (not to mention pretty much everyone else here).


              Comment

              • WW

                #97
                Re: The_Sage &amp; void main()

                Booooooring.


                Comment

                • WW

                  #98
                  Re: The_Sage &amp; void main()

                  Duane wrote:[color=blue]
                  > So far he's ignored comments by Herb Sutter, Andrew Koenig, Greg
                  > Comeau and quotes from
                  > Bjarn Stroustrup (not to mention pretty much everyone else here).[/color]

                  But that isn't his biggest sin. He is plain boring. The worst boring troll
                  I have ever seen. No effort whatsoever.

                  --
                  WW aka Attila


                  Comment

                  • WW

                    #99
                    Re: The_Sage &amp; void main()

                    Noah Roberts wrote:[color=blue]
                    > Now that I have upgraded my newsreader I can finally do this. You
                    > will be the first person I have ever done this to on usenet ever.[/color]

                    Not me? ;-)

                    --
                    WW aka Attila


                    Comment

                    • The_Sage

                      Re: The_Sage &amp; void main()

                      >Reply to article by: "Randall Hyde" <randyhyde@eart hlink.net>[color=blue]
                      >Date written: Mon, 29 Sep 2003 04:04:55 GMT
                      >MsgID:<HbOdb.8 385$NX3.3315@ne wsread3.news.pa s.earthlink.net >[/color]
                      [color=blue][color=green]
                      >>Don't change the subject, especially when the issue now is if you can even read
                      >>or not. The sentence in question taken from the standard clearly was talking
                      >>about the return type, not the parameters. If you can't tell the difference
                      >>between a return type and parameter, you have lost all credibility. In other
                      >>words, you are a joke when it comes to discussing anything at all about any
                      >>computer language.[/color][/color]
                      [color=blue]
                      >Forgive me for butting into this intellectually stimulating debate...[/color]

                      You are forgiven. You couldn't handle the last debate so there isn't any
                      indication you are going to stick up for someone else any better.

                      The Sage

                      =============== =============== =============== =============== =
                      My Home Page : http://members.cox.net/the.sage

                      "The men that American people admire most extravagantly are
                      most daring liars; the men they detest the most violently are
                      those who try to tell them the truth" -- H. L. Mencken
                      =============== =============== =============== =============== =

                      Comment

                      • The_Sage

                        Re: The_Sage &amp; void main()

                        >Reply to article by: "Randall Hyde" <randyhyde@eart hlink.net>[color=blue]
                        >Date written: Mon, 29 Sep 2003 04:11:51 GMT
                        >MsgID:<biOdb.8 392$NX3.7967@ne wsread3.news.pa s.earthlink.net >[/color]
                        [color=blue][color=green]
                        >>I like void main() and I hope all the major compiler manufacturers continue to
                        >>provide it for their customers like me. Like I pointed out to poor little David,
                        >>there is no point in returning anything from main() since once you exit main(),
                        >>that's it -- there is nothing to read your int.[/color][/color]
                        [color=blue]
                        >I suspect...[/color]

                        <Snipped stupid opinion>
                        [color=blue]
                        >Every one of these operating
                        >systems provides the ability to query the program's return value. For example,
                        >as a Windows programmer, surely you've come across the ExitProcess API
                        >call.[/color]

                        You don't know what you are talking about as usual. ExitProcess() is not the
                        same thing as int main(). From the MSDN site...



                        ExitProcess...

                        The ExitProcess function ends a process and all its threads.

                        Parameters: uExitCode...

                        Exit code for the process and all threads terminated as a result of this
                        call. Use the GetExitCodeProc ess function to retrieve the process's exit
                        value. Use the GetExitCodeThre ad function to retrieve a thread's exit value.

                        Return Values...

                        This function does not return a value.

                        See that? THIS FUNCTION DOES NOT RETURN A VALUE. Which word didn't you
                        understand this time?

                        The Sage

                        =============== =============== =============== =============== =
                        My Home Page : http://members.cox.net/the.sage

                        "The men that American people admire most extravagantly are
                        most daring liars; the men they detest the most violently are
                        those who try to tell them the truth" -- H. L. Mencken
                        =============== =============== =============== =============== =

                        Comment

                        • The_Sage

                          Re: The_Sage &amp; void main()

                          >Reply to article by: Noah Roberts <nroberts@donte mailme.com>[color=blue]
                          >Date written: Sun, 28 Sep 2003 19:26:09 -0700
                          >MsgID:<bl85d4$ mb1$1@quark.scn .rain.com>[/color]
                          [color=blue][color=green][color=darkred]
                          >>>This guy has to be pulling our legs. Noone that is as ignorant as ^that
                          >>>could survive outside of a lab environment. He's trolling and we all
                          >>>fell for it. It has been fun, but I am done :P[/color][/color][/color]
                          [color=blue][color=green]
                          >>Ah, somebody else who can't read simple english, and can't tell the link in
                          >>question is NOT a link to the ISO standard, nor is it an authority on the ISO
                          >>standard. It was just a link to show that other C++ compilers use void main(),
                          >>not as proof whether void main() was "legal" or not. For that proof, I defer you
                          >>to the ISO standard instead of a personal web page. Capice?[/color][/color]
                          [color=blue]
                          >Now that I have upgraded my newsreader I can finally do this. You will
                          >be the first person I have ever done this to on usenet ever.[/color]

                          Ah, yet another intellectual coward who can't defend their personal opinion with
                          facts has ran away. See ya! Have fun in Never Never Land!

                          The Sage

                          =============== =============== =============== =============== =
                          My Home Page : http://members.cox.net/the.sage

                          "The men that American people admire most extravagantly are
                          most daring liars; the men they detest the most violently are
                          those who try to tell them the truth" -- H. L. Mencken
                          =============== =============== =============== =============== =

                          Comment

                          • The_Sage

                            Re: The_Sage &amp; void main()

                            >Reply to article by: "Attila Feher" <attila.feher@l mf.ericsson.se>[color=blue]
                            >Date written: Mon, 29 Sep 2003 13:57:16 +0300
                            >MsgID:<bl934q$ o3u$1@newstree. wise.edt.ericss on.se>[/color]
                            [color=blue][color=green][color=darkred]
                            >>>You still did not answer the question! Read and tell what Chapter
                            >>>28 of the C++ standard says about the main function. If you don't,
                            >>>we will all know you are a clueless idiot - to use your words.[/color][/color][/color]
                            [color=blue][color=green]
                            >>Don't change the subject, especially when the issue now is if you can
                            >>even read or not.[/color][/color]
                            [color=blue]
                            >I am not changing the subject.[/color]

                            No one said you were. I wasn't talking to you and since you have nothing I
                            consider intelligent enough to respond to (other than that long awaited response
                            from the last post to you about what the standard clearly states "shall...bu t
                            otherwise" means in plain english), see ya!

                            The Sage

                            =============== =============== =============== =============== =
                            My Home Page : http://members.cox.net/the.sage

                            "The men that American people admire most extravagantly are
                            most daring liars; the men they detest the most violently are
                            those who try to tell them the truth" -- H. L. Mencken
                            =============== =============== =============== =============== =

                            Comment

                            • WW

                              Re: The_Sage &amp; void main()

                              The_Sage wrote:[color=blue]
                              > Exit code for the process and all threads terminated as a result of
                              > this call. Use the GetExitCodeProc ess function to retrieve the
                              > process's exit value. Use the GetExitCodeThre ad function to
                              > retrieve a thread's exit value.
                              >
                              > Return Values...
                              >
                              > This function does not return a value.
                              >
                              > See that? THIS FUNCTION DOES NOT RETURN A VALUE. Which word didn't you
                              > understand this time?[/color]

                              You are really really hopelessly clueless. I have only quoted in your
                              pathetic attempt to be technical so that as long as the USENET is archived
                              people will see it twice and laugh their S-es off twice on how clueless you
                              are.

                              --
                              WW aka Attila


                              Comment

                              • Randall Hyde

                                Re: The_Sage &amp; void main()


                                "The_Sage" <theeSage@azrmc i.net> wrote in message news:b2uhnv0nca c2h98c7f6lgmm7t lnkqeqesu@4ax.c om...[color=blue][color=green]
                                > >Reply to article by: "Randall Hyde" <randyhyde@eart hlink.net>
                                > >Date written: Mon, 29 Sep 2003 04:04:55 GMT
                                > >MsgID:<HbOdb.8 385$NX3.3315@ne wsread3.news.pa s.earthlink.net >[/color]
                                >[color=green][color=darkred]
                                > >>Don't change the subject, especially when the issue now is if you can even read
                                > >>or not. The sentence in question taken from the standard clearly was talking
                                > >>about the return type, not the parameters. If you can't tell the difference
                                > >>between a return type and parameter, you have lost all credibility. In other
                                > >>words, you are a joke when it comes to discussing anything at all about any
                                > >>computer language.[/color][/color]
                                >[color=green]
                                > >Forgive me for butting into this intellectually stimulating debate...[/color]
                                >
                                > You are forgiven. You couldn't handle the last debate so there isn't any
                                > indication you are going to stick up for someone else any better.
                                >
                                > The Sage
                                >[/color]

                                Well, I noticed how you avoided answering the question completely.
                                True to form, as usual.
                                Cheers,
                                Randy Hyde


                                Comment

                                Working...