The_Sage & void main()

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

    #46
    Re: The_Sage & void main()

    >Reply to article by: "WW" <wolof@freemail .hu>[color=blue]
    >Date written: Fri, 26 Sep 2003 06:57:03 +0300
    >MsgID:<bl0dec$ 255$1@phys-news1.kolumbus. fi>[/color]
    [color=blue]
    >http://homepages.tesco.net/~J.deBoyn...void-main.html[/color]
    [color=blue][color=green][color=darkred]
    >>>Have you read this link? Here is a nice little quote for yah (from
    >>>the above :P):[/color][/color][/color]
    [color=blue][color=green][color=darkred]
    >>>"The ISO C++ Standard (ISO/IEC 14882:1998) specifically requires
    >>>main to return int."[/color][/color][/color]
    [color=blue][color=green]
    >>You C++ types aren't the brightest group on the web, are you? We have
    >>been through this already.[/color][/color]
    [color=blue]
    >Yes, and you have been porved wrong. You are not the brightest, are you?[/color]

    Hehe! Thank you for proving my point about how people like you aren't the
    brightest guys on the web. Let me reiterate the part you haven't read and
    therefore have yet to refute in an intelligent or factual manner...

    From the ISO standard:
    "3.6.1 Main function paragraph 2:
    It shall have a return type of type int..."

    Which all ISO compilers like MS, Borland, and IBM do.

    "...but otherwise..."

    See that word? It means that the standard allows breathing room for other return
    types IN ADDITION TO int main().

    "...its type is implementation-defined"

    Therefore, any compiler that implement-defines other types of main() functions,
    in addition to int main(), types like void main() for example, are ISO
    compliant, hence since MS, Borland, and IBM use int main() AND ALSO
    IMPLEMENT/DEFINE void main(), they are therefore also ISO compliant.

    I have yet to be proved wrong -- care to give it try yourself? Stop your yapping
    and let's see what you are really made of.

    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

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

      >Reply to article by: Noah Roberts <nroberts@donte mailme.com>[color=blue]
      >Date written: Thu, 25 Sep 2003 22:30:16 -0700
      >MsgID:<3F73CEE 8.5000508@donte mailme.com>[/color]
      [color=blue][color=green][color=darkred]
      >>>>http://homepages.tesco.net/~J.deBoyn...void-main.html[/color][/color][/color]
      [color=blue][color=green][color=darkred]
      >>>Have you read this link? Here is a nice little quote for yah (from the
      >>>above :P):[/color][/color][/color]
      [color=blue][color=green][color=darkred]
      >>>"The ISO C++ Standard (ISO/IEC 14882:1998) specifically requires main to
      >>>return int."[/color][/color][/color]
      [color=blue][color=green]
      >>You C++ types aren't the brightest group on the web, are you? We have been
      >>through this already. The ISO C++ Standard also says that you can optionally
      >>return other types, ie -- int main() is one required type but void main() is
      >>another, optional return type. It is "implementa tion-defined" as the actual
      >>standard puts it. Notice how the above article goes on to list all the C++
      >>compilers that allow void main(), such as IBM, MS, and Borland, yet they are all
      >>ISO compliant.[/color][/color]
      [color=blue]
      >Read the link man, they are talking about C. C and C++ are not the same
      >thing. From your own source:[/color]

      No, they were talking about both. Do a word search.

      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

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

        >Reply to article by: "Phlip" <phlip_cpp@yaho o.com>[color=blue]
        >Date written: 26 Sep 2003 14:56:51 GMT
        >MsgID:<bl1k3j$ 457@dispatch.co ncentric.net>[/color]

        Haha! I'm glad to see that someone around here is intelligent enough to have a
        sense of humor! Thanks for reminding us that there is nothing about the topic of
        void main() vs int main() that is worth taking very seriously.
        [color=blue][color=green]
        >>You C++ types aren't the brightest group on the web, are you?[/color][/color]
        [color=blue]
        >However, I have carefully researched this issue, for many, years, and I have
        >come to the conclusion that one should not use void main, and should prefer
        >int main, for a number of valid technical reasons.[/color]
        [color=blue]
        >Void main:[/color]
        [color=blue]
        > * causes illiteracy in lab mice
        > * inspires television networks to move reality shows to the next logical
        >step: Human sacrifice
        > * will transmit the contents of your internet cache folders to the nearest
        >repressed fundamentalist priest
        > * will precipitate the return of the Joe Isuzu commercials (1999/11/20)
        > * causes destructive thread recidivism in technical newsgroups
        > * will attract biker gangs to your granma's neighborhood
        > * is a capitalist plot
        > * nutates the precession of the equinoxes
        > * has designs on your kid sister
        > * makes killer bees think you smell like Chanel No. 5
        > * inspires white supremacists to come "out" about their thing for Reggae
        >music
        > * will inspire mass media to get over this current cheerleader thing
        > * denies workers control over the means of production
        > * relaxes the prohibitions against split infinitives (1999/04/24)
        > * is caused by orbiting microwave platforms that target the thermal
        >resonance signature of your neurons
        > * makes Disney executives have vivid anxiety dreams about not litigating
        >enough
        > * makes folks >still< think alien beings make crop circles
        > * uses NFL broadcasts without the expressed written consent of Fox Network
        > * will make your loved ones think you have been possessed by aliens
        > * will make you blind, grow hair on your palms, and convince you to vote
        >Republican
        > * increases the chances air traffic controllers accidentally cross flight
        >corridors directly over your house
        > * makes street lunatics think you are part of the conspiracy against them
        > * points the Hubble Space Telescope at your house
        > * makes IBM think they have a prayer of solving the Protein Folding Problem
        >in less time than the Sun takes to burn out
        > * makes George Lucas think we can tell the difference between any of his
        >StarWars movies
        > * makes your balls drop off
        > * inspires a remote tribe in Borneo to carve big wooden statues that look
        >just like you
        > * causes Phlip's big toe to swell up like a balloon
        > * inspires Hollywood executives to sign off on yet another insipid
        >live-action remake of an insipid 1970s cartoon
        > * has been cruely tested on charismatic dolphins and adorable baby seals
        > * has already caused the return of Joe Isuzu, as I prophesied on this
        >newsgroup last year (2001/04/04)[/color]

        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

        • Randall Hyde

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


          "SomeDumbGu y" <abuse@127.0.0. 1> wrote in message news:uz2db.1017 9$FH3.4954@nwrd dc02.gnilink.ne t...[color=blue]
          >
          > void main() is not legal in C++ but is legal in C.[/color]


          I hope you're not expecting him to know C any better than C++.
          He steadfastly claims that the following is C code (in fact, it is high-level
          assembly code, but he has gone on record about a dozen times swearing
          that it is a C program; we're not talking about misplaced semicolons here
          folks...)

          program regexp;
          #include( "stdlib.hhf " )
          const
          MaxLines := 100;

          static
          f :dword;
          i :uns32;
          filename :string;
          lineCnt :uns32;
          areaCode :str.strvar(16) ;
          prefix :str.strvar(16) ;
          suffix :str.strvar(16) ;
          lines :string[ MaxLines ];

          begin regexp;

          if( arg.c() != 2 ) then

          stdout.put( "Usage: regexp <filename>" nl );
          exit regexp;

          endif;
          mov( fileio.open( arg.v( 1 ), fileio.r ), f );
          mov( 0, ebx );
          while( !fileio.eof( f )) do

          fileio.a_gets( f );
          mov( eax, lines[ ebx*4 ] );
          inc( ebx );

          endwhile;
          mov( ebx, lineCnt );
          fileio.close( f );
          for( mov( 0, i ); mov( i, edx ) < lineCnt; inc( i )) do

          pat.match( lines[ edx*4 ] );

          pat.zeroOrMoreC set( -{ '(','0'..'9' } );
          pat.zeroOrOneCh ar( '(' );
          pat.exactlyNCse t( {'0'..'9'}, 3 );
          pat.extract( areaCode );
          pat.zeroOrOneCh ar( ')' );
          pat.zeroOrMoreW S();
          pat.exactlyNCse t( {'0'..'9'}, 3 );
          pat.extract( prefix );
          pat.oneOrMoreCs et( {'-', ' '} );
          pat.exactlyNCse t( {'0'..'9'}, 4 );
          pat.extract( suffix );

          stdout.put( i:2,": (", areaCode, ") ", prefix, '-', suffix, nl );

          pat.if_failure;

          pat.endmatch;

          endfor;

          end regexp;



          Comment

          • Noah Roberts

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

            The_Sage wrote:[color=blue][color=green]
            >>Reply to article by: Noah Roberts <nroberts@donte mailme.com>
            >>Date written: Thu, 25 Sep 2003 22:30:16 -0700
            >>MsgID:<3F73CE E8.5000508@dont emailme.com>[/color]
            >
            >[color=green][color=darkred]
            >>>>>http://homepages.tesco.net/~J.deBoyn...void-main.html[/color][/color][/color]
            [color=blue][color=green]
            >>Read the link man, they are talking about C. C and C++ are not the same
            >>thing. From your own source:[/color]
            >
            >
            > No, they were talking about both. Do a word search.[/color]

            A word search does not work, you must *read* the site.

            NR

            Comment

            • Noah Roberts

              #51
              Re: [OT] The_Sage &amp; void main()

              Mike Wahler wrote:
              [color=blue]
              > http://www.faqs.org/docs/jargon/P/plonk.html[/color]

              "[Usenet: possibly influenced by British slang 'plonk' for cheap
              booze, or 'plonker' for someone behaving stupidly (latter is lit.
              equivalent to Yiddish schmuck)] "

              I always thought it was representative of the sound a turd makes as it
              hits the water, just before you flush it and never see it again. Were
              the hell did they get the above?

              NR

              Comment

              • sinewave

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


                if Orson Wells were alive today his "War of the Worlds" would feature
                aliens landing in Silicon Valley, California. the aliens would demand the
                ANSI/ISO C++ standards and then announce that the universe at large demands
                void main() be used over int main(). imagine all the volvos fleeing town,
                frantic calls to Bjarne, organized prayer groups in Redmond Washington,
                suicides by mountain dew overdose, lines of teary eyed geeks strung out on
                valium clutching their now-worthless $175 (US) copy of the standard
                mumbling "my code is not compliant mommy", and last rights given en mass to
                comp.lang.c++. ret

                Comment

                • WW

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

                  The_Sage wrote:[color=blue][color=green][color=darkred]
                  >>>> "The ISO C++ Standard (ISO/IEC 14882:1998) specifically requires
                  >>>> main to return int."[/color][/color]
                  >[color=green][color=darkred]
                  >>> You C++ types aren't the brightest group on the web, are you? We
                  >>> have
                  >>> been through this already.[/color][/color]
                  >[color=green]
                  >> Yes, and you have been porved wrong. You are not the brightest, are
                  >> you?[/color]
                  >
                  > Hehe! Thank you for proving my point about how people like you aren't
                  > the brightest guys on the web.[/color]

                  I all I had proven is that you are as bright as a black hole.
                  [color=blue]
                  > Let me reiterate the part you haven't
                  > read and therefore have yet to refute in an intelligent or factual
                  > manner...[/color]

                  You have never applied eaither intelligence or facts in this thread. You
                  have lied about code compiling (which isn't due to mising semicolon) so
                  don't come mumbling about facts, liar.
                  [color=blue]
                  > From the ISO standard:
                  > "3.6.1 Main function paragraph 2:
                  > It shall have a return type of type int..."
                  >
                  > Which all ISO compilers like MS, Borland, and IBM do.
                  >
                  > "...but otherwise..."
                  >
                  > See that word? It means that the standard allows breathing room for
                  > other return types IN ADDITION TO int main().
                  >
                  > "...its type is implementation-defined"[/color]


                  No it says (as one f*cking sentence):

                  "It shall have a return type of type int but otherwise its type is
                  implementation-defined."

                  The same written in C++:

                  int main(herecanbea nything);

                  That is what it means, brainless The Sage. A functions type consist of its
                  return type and the number, the order and types of its arguments. So saying
                  it shall have a return type of type int, means it shall have a return type
                  of type int. Not void. Not std::string. Not TheSage::NoBrai n. It shall
                  have a return type of type int. OTHERWISE its type is implementation
                  defined MEANS that the number, the order and the type of its arguments is
                  implementation defined AND the f*cking paragraph CONTINUES by presenting the
                  TWO COMPLETE FUNCTION SIGNATURES (I just hope The Sage can read all caps
                  better. Children and mentally challenged do.) which ALL IMPLEMENTATIONS
                  MUST SUPPORT, but they CAN SUPPORT any OTHER SIGNATURES as long as the ALL
                  RETURN INT. That is what it means. If you don't understand it just take a
                  life-long vacation at a nearby mental hospital.

                  [color=blue]
                  > Therefore, any compiler that implement-defines other types of main()[/color]

                  Intellgient says: implement-define... Oh boy.
                  [color=blue]
                  > functions, in addition to int main(), types like void main() for
                  > example, are ISO compliant,[/color]

                  It is not. As the standard sasy: main shall have a return type of type int.
                  Period.
                  [color=blue]
                  > hence since MS, Borland, and IBM use int main()
                  > AND ALSO IMPLEMENT/DEFINE void main(),
                  > they are therefore also ISO compliant.[/color]

                  They are, if and ONLY if they give you an error or warning message during
                  compilation TELLING YOU THAT VOID MAIN IS NOT STANDARD C++.
                  [color=blue]
                  > I have yet to be proved wrong[/color]

                  You have been proven wrong about 80 times. Now stop playing stupid and
                  repeating the same blabla 300 times all over again. If all you can do is
                  lie and lie and lie and just crowl away. Everyone here knows you are a
                  liar.
                  [color=blue]
                  > -- care to give it try yourself?[/color]

                  I don't need to. I work with 5 C++ compilers which immediately stop with
                  the error message: main shall have a return type of int. I use my other
                  compilers with flags needed to make them ISO compliant and they also wanr
                  about it that main must return int.
                  [color=blue]
                  > Stop
                  > your yapping and let's see what you are really made of.[/color]

                  Stop your yapping and let's see what you are really made of! So as I have
                  asked you already many times: GET your copy of the STANDARD in your hand!
                  Look at chapter 28 and tell me what it says about the main function! If you
                  don't do this, I have to assume that you have no standard and you have
                  absolutely no idea what are you talking about. I am not going to reply to
                  you until I see you quote here what Chapter 28 of the ISO C++ standard says
                  about the main function. Until you do that I take you as a liar who has not
                  C++ compilers and does not even have the standard.

                  --
                  WW aka Attila


                  Comment

                  • WW

                    #54
                    Re: [OT] The_Sage &amp; void main()

                    Mike Wahler wrote:[color=blue][color=green][color=darkred]
                    >>>
                    >>> Won't you folks all just *plonk* this loser already?[/color]
                    >>
                    >> What is *plonk*?[/color]
                    >
                    > What is google?[/color]



                    --
                    WW aka Attila


                    Comment

                    • Greg Comeau

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

                      In article <q2q9nvoe4aq7pi clg0oj0u4qvcqrf i6gf1@4ax.com>,
                      The_Sage <theeSage@azrmc i.net> wrote:[color=blue][color=green]
                      >>Reply to article by: "WW" <wolof@freemail .hu>
                      >>Date written: Fri, 26 Sep 2003 06:57:03 +0300
                      >>MsgID:<bl0dec $255$1@phys-news1.kolumbus. fi>[/color]
                      >[color=green]
                      >>http://homepages.tesco.net/~J.deBoyn...void-main.html[/color]
                      >[color=green][color=darkred]
                      >>>>Have you read this link? Here is a nice little quote for yah (from
                      >>>>the above :P):[/color][/color]
                      >[color=green][color=darkred]
                      >>>>"The ISO C++ Standard (ISO/IEC 14882:1998) specifically requires
                      >>>>main to return int."[/color][/color]
                      >[color=green][color=darkred]
                      >>>You C++ types aren't the brightest group on the web, are you? We have
                      >>>been through this already.[/color][/color]
                      >[color=green]
                      >>Yes, and you have been porved wrong. You are not the brightest, are you?[/color]
                      >
                      >Hehe! Thank you for proving my point about how people like you aren't the
                      >brightest guys on the web. Let me reiterate the part you haven't read and
                      >therefore have yet to refute in an intelligent or factual manner...
                      >
                      > From the ISO standard:
                      > "3.6.1 Main function paragraph 2:
                      > It shall have a return type of type int..."
                      >
                      >Which all ISO compilers like MS, Borland, and IBM do.
                      >
                      > "...but otherwise..."
                      >
                      >See that word? It means that the standard allows breathing room for other return
                      >types IN ADDITION TO int main().
                      >
                      > "...its type is implementation-defined"
                      >
                      >Therefore, any compiler that implement-defines other types of main() functions,
                      >in addition to int main(), types like void main() for example, are ISO
                      >compliant, hence since MS, Borland, and IBM use int main() AND ALSO
                      >IMPLEMENT/DEFINE void main(), they are therefore also ISO compliant.
                      >
                      >I have yet to be proved wrong -- care to give it try yourself? Stop your yapping
                      >and let's see what you are really made of.[/color]

                      The type of a function involves a few parts.
                      The return type is one part, there are other parts (like the types
                      of the arguments as another one). What the above says in that
                      one part remains the same (the return type) while the other
                      parts may be variable.... if we're talking about strict conforming
                      and we're talking about a hosted environment.
                      --
                      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

                      • Mike Wahler

                        #56
                        Re: [OT] The_Sage &amp; void main()

                        "WW" <wolof@freemail .hu> wrote in message
                        news:bl3nc1$ibv $1@phys-news1.kolumbus. fi...[color=blue]
                        > Mike Wahler wrote:[color=green][color=darkred]
                        > >>>
                        > >>> Won't you folks all just *plonk* this loser already?
                        > >>
                        > >> What is *plonk*?[/color]
                        > >
                        > > What is google?[/color]
                        >
                        > http://mars-attacks.org/~boklm/browse/humor/bart.gif[/color]

                        LOL, thanks for that. I know several people who need to
                        see it.

                        -Mike


                        Comment

                        • WW

                          #57
                          Re: [OT] The_Sage &amp; void main()

                          Mike Wahler wrote:[color=blue]
                          > "WW" <wolof@freemail .hu> wrote in message
                          > news:bl3nc1$ibv $1@phys-news1.kolumbus. fi...[color=green]
                          >> Mike Wahler wrote:[color=darkred]
                          >>>>>
                          >>>>> Won't you folks all just *plonk* this loser already?
                          >>>>
                          >>>> What is *plonk*?
                          >>>
                          >>> What is google?[/color]
                          >>
                          >> http://mars-attacks.org/~boklm/browse/humor/bart.gif[/color]
                          >
                          > LOL, thanks for that. I know several people who need to
                          > see it.[/color]

                          Do you know how happny I was when I have accidentally found it? :-)

                          --
                          WW aka Attila


                          Comment

                          • Phlip

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

                            The_Sage wrote:
                            [color=blue]
                            > Haha! I'm glad to see that someone around here is intelligent enough to[/color]
                            have a[color=blue]
                            > sense of humor![/color]

                            Why, thank you!
                            [color=blue]
                            >plonk<[/color]

                            --
                            Phlip




                            Comment

                            • The_Sage

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

                              >Reply to article by: "WW" <wolof@freemail .hu>[color=blue]
                              >Date written: Sat, 27 Sep 2003 12:59:31 +0300
                              >MsgID:<bl3n24$ hmf$1@phys-news1.kolumbus. fi>[/color]
                              [color=blue]
                              >No it says (as one f*cking sentence):[/color]
                              [color=blue]
                              >"It shall have a return type of type int but otherwise its type is
                              >implementati on-defined."[/color]

                              Uh, duh!
                              [color=blue]
                              >The same written in C++:[/color]
                              [color=blue]
                              >int main(herecanbea nything);[/color]
                              [color=blue]
                              >That is what it means, brainless The Sage.[/color]

                              Bwahaha! The subject is RETURN TYPE, not PARAMETERS. NO MENTION WAS MADE IN THAT
                              ONE F*CKING SENTENCE ABOUT PARAMETERS.

                              Thank you for giving me the oppotunity to irrefutably prove what a total idiot
                              you are.

                              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

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

                                >Reply to article by: Noah Roberts <nroberts@donte mailme.com>[color=blue]
                                >Date written: Fri, 26 Sep 2003 19:38:54 -0700
                                >MsgID:<3F74F83 E.9090108@donte mailme.com>[/color]
                                [color=blue][color=green][color=darkred]
                                >>>>>>http://homepages.tesco.net/~J.deBoyn...void-main.html[/color][/color][/color]
                                [color=blue][color=green][color=darkred]
                                >>>Read the link man, they are talking about C. C and C++ are not the same
                                >>>thing. From your own source:[/color][/color][/color]
                                [color=blue][color=green]
                                >>No, they were talking about both. Do a word search.[/color][/color]
                                [color=blue]
                                >A word search does not work, you must *read* the site.[/color]

                                I see you don't know how to use a word search. Heck, even the title tells you
                                that they are talking about C and C++, ie -- "VOID MAIN() IS NOT LEGAL IN C++
                                BUT IS LEGAL IN C". Funny how you missed that. Then they 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().

                                DUH!

                                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

                                Working...