How many levels of pointers can you have?

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

    #91
    Re: How many levels of pointers can you have?

    Chris Hills <chris@phaedsys .orgwrites:
    In article <ln1wgjpn5x.fsf @nuthaus.mib.or g>, Keith Thompson
    <kst-u@mib.orgwrites
    >>Chris Hills <chris@phaedsys .orgwrites:
    >>In article <lnwsybq0oi.fsf @nuthaus.mib.or g>, Keith Thompson
    >><kst-u@mib.orgwrites
    >>>>Chris Hills <chris@phaedsys .orgwrites:
    [...]
    >>>>There was unfortunately ,in my opinion, a whole section dropped.
    >>>>
    >>>>Oh? What section was dropped? (I have a copy of the C90 standard,
    >>>>but not of the official C89 standard.)
    >>>
    >>The rational.
    >>
    >>I didn't think the rationalE was actually part of the standard;
    >
    It wasn't AFAIK
    >>I
    >>thought it was a separate document. But in any case the rationale is
    >>still available. (I think I used to have a copy of the C89/C90
    >>rationale;
    >
    The Rational was for C89. It was an ANSI working group document AFAIK
    it was never an ISO document
    If it was a working group document, then it was't an ANSI standard
    either, and it wasn't actually "dropped". And, as i said, it was
    available; since it's non-normative, it doesn't matter much whether
    it's published by ISO or not.

    --
    Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
    San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
    "We must do something. This is something. Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

    Comment

    • Richard Tobin

      #92
      Re: How many levels of pointers can you have?

      In article <eM-dnZ4Ee69YP_bbnZ 2dnUVZ8vmdnZ2d@ bt.com>,
      Malcolm McLean <regniztar@btin ternet.comwrote :
      >I doubt my website would "validate as compliant HTML". That's because I edit
      >all the files in a plain text editor. It is too difficult to balance all the
      >tags, for instance, so I don't bother.
      If by "not balancing all the tags" you mean omitting some start and
      end tags, that may be perfectly valid. Unlike XML, SGML (of which
      HTML is supposed to be an example) allows many shortcuts in that
      respect for the benefit of human authors.

      On the other hand, if you mean things like badly-nested elements such as

      <x>some<y>rando m</x>stuff</y>

      then it's not valid.

      -- Richard
      --
      "Considerat ion shall be given to the need for as many as 32 characters
      in some alphabets" - X3.4, 1963.

      Comment

      • Keith Thompson

        #93
        Re: How many levels of pointers can you have?

        Chris Hills <chris@phaedsys .orgwrites:
        In article <lnwsybo81l.fsf @nuthaus.mib.or g>, Keith Thompson
        <kst-u@mib.orgwrites
        >>Chris Hills <chris@phaedsys .orgwrites:
        >>In article <f4g63e$k6n$1@o nline.de>, Joachim Schmitz
        >><nospam.jojo@ schmitz-digital.dewrite s
        >>>>"Keith Thompson" <kst-u@mib.orgschrie b im Newsbeitrag
        >>>>news:lnlket rm82.fsf@nuthau s.mib.org...
        >>>>"Joachim Schmitz" <nospam.jojo@sc hmitz-digital.dewrite s:
        >>[...]
        >>>>>So what does C89 require as the minmum?
        >>>>12.
        >>>>C90 5.2.4.1:
        >>>> 12 pointer, array, and function declarators (in any combinations)
        >>>> modifying an arithmetic, a structure, a union, or an incomplete
        >>>> type in a declaration
        >>>>Thanks! Finaly a useful answer to what I meant to ask...
        >>Absolutely not.
        [snip]
        >>So in REALITY you have to look at the documents to see what your C
        >>compiler will actually do.
        >>
        >>He didn't ask what his C compiler will actually do. He asked how many
        >>levels of pointers C89 requires. I answered the question that he
        >>actually asked.
        >
        NO he did NOT. What he asked was :- "How many levels of pointers can
        you have?"
        Please pay attention; you even quoted the question that I answered.

        The *original poster* asked "How many levels of pointers can you
        have?". (I didn't attempt to answer that question.)

        Later in the thread, Joachim Schmitz (who is not the OP) asked:

        So what does C89 require as the minmum?

        That's the question I answered. The answer is 12.

        --
        Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
        San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
        "We must do something. This is something. Therefore, we must do this."
        -- Antony Jay and Jonathan Lynn, "Yes Minister"

        Comment

        • Old Wolf

          #94
          Re: How many levels of pointers can you have?

          On Jun 9, 11:13 am, Charlton Wilbur <cwil...@chroma tico.netwrote:
          Er, you haven't seen some of the resumes I've seen, then, and
          subsequently interviewed the candidates with the same name at the top
          of the resume. The technical ability described on the resume may have
          nothing at all to do with the technical ability possessed by the
          candidate
          I've been told that this is endemic in American
          culture, and someone even tried to argue once
          that if you did NOT lie on your resumé then you
          were behaving irrationally.

          Comment

          • Flash Gordon

            #95
            Re: [C99F] How many levels of pointers can you have?

            Richard Heathfield wrote, On 10/06/07 22:46:
            Chris Hills said (in a reply to Keith Thompson):
            <snip>
            >There were some discussions as to whether MISRA-C3 should reference
            >C99. Any suggestions?
            >
            Why bother? Almost nobody uses it. Why reference an almost unused
            standard? I can see why you might want to refer to C99 in, say, a
            tutorial - just to make people aware that it exists and broadly what
            its features are - but otherwise it seems pretty pointless.
            <snip>

            I my opinion it depends on how much clout the MISRA group has. If they
            can effectively force the compiler writers for the chips used in their
            domain to conform to C99 then them doing so would be a good thing in my
            opinion. However, if the compiler vendors will just ignore it then MISRA
            should stick to C95. After all, I don't want my car failing because the
            code used a C99 feature that was not properly implemented by the compiler!
            --
            Flash Gordon

            Comment

            • CBFalconer

              #96
              Re: [C99F] How many levels of pointers can you have?

              Chris Hills wrote:
              Keith Thompson wrote:
              >
              .... snip ...
              >
              >Frankly, I hope that's not entirely true. To take just one
              >example, arithmetic on void*, particularly the way gcc implements
              >it, is just ugly (sizeof(void)== 1???).
              >
              The problem is pragmatically speaking the Gcc dialect is very
              widely spread. It is far more common than C99. Also there is a
              lot of freely available source that uses the gcc dialect.
              But you are not stuck with it. "-W -Wall -ansi -pedantic" converts
              gcc into a standard C compiler. As I suspect you know.

              --
              <http://www.cs.auckland .ac.nz/~pgut001/pubs/vista_cost.txt>
              <http://www.securityfoc us.com/columnists/423>
              <http://www.aaxnet.com/editor/edit043.html>
              <http://kadaitcha.cx/vista/dogsbreakfast/index.html>
              cbfalconer at maineline dot net



              --
              Posted via a free Usenet account from http://www.teranews.com

              Comment

              • CBFalconer

                #97
                Re: How many levels of pointers can you have?

                Chris Hills wrote:
                Keith Thompson <kst-u@mib.orgwrites
                >
                .... snip ...
                >
                >(I hope to see that change someday; if gcc's C99 conformance is
                >ever completed, that might finally provide the impetus to make
                >it happen.)
                >
                I doubt it. Besides by the time the majority get close to C99
                compliance it will be C20** I expect.
                >
                Many commercial compilers use C99 complaint front ends. It is
                just that the seen no need to rush to make the whole compiler
                c99 compliant.
                I believe the major problem is updating all those libraries.

                --
                <http://www.cs.auckland .ac.nz/~pgut001/pubs/vista_cost.txt>
                <http://www.securityfoc us.com/columnists/423>
                <http://www.aaxnet.com/editor/edit043.html>
                <http://kadaitcha.cx/vista/dogsbreakfast/index.html>
                cbfalconer at maineline dot net



                --
                Posted via a free Usenet account from http://www.teranews.com

                Comment

                • Charlton Wilbur

                  #98
                  Re: How many levels of pointers can you have?

                  >>>>"OW" == Old Wolf <oldwolf@inspir e.net.nzwrites:

                  OWI've been told that [resume padding] is endemic in American
                  OWculture, and someone even tried to argue once that if you did
                  OWNOT lie on your resumé then you were behaving irrationally.

                  There are so many people inflating their resumes that the resume of
                  someone who has not done the same will look anemic by comparison.

                  On the other hand, my resume is entirely truthful and includes
                  information on where I'm willing to work, and I can count on one or
                  two emails a week from recruiters who want me to work jobs I'm not
                  qualified for in geographically infeasible areas. I suspect the
                  resume-padding has gotten to such a point that nobody is reading them
                  at all any longer, and it has become some sort of ritual signalling
                  like peacock tail feathers.

                  Charlton


                  --
                  Charlton Wilbur
                  cwilbur@chromat ico.net

                  Comment

                  • Dave Vandervies

                    #99
                    Re: [OT] How many levels of pointers can you have?

                    In article <87sl8zthuy.fsf @mithril.chroma tico.net>,
                    Charlton Wilbur <cwilbur@chroma tico.netwrote:
                    >>>>>"OW" == Old Wolf <oldwolf@inspir e.net.nzwrites:
                    >
                    OWI've been told that [resume padding] is endemic in American
                    OWculture, and someone even tried to argue once that if you did
                    OWNOT lie on your resumé then you were behaving irrationally.
                    >
                    >There are so many people inflating their resumes that the resume of
                    >someone who has not done the same will look anemic by comparison.
                    I have a significantly higher ratio of job offers to job interviews than
                    most people I know.
                    This is mostly because I have trouble getting interviews when looking for
                    a job; most places where I've been interviewed have seemed to be impressed
                    with me. I have, on more than one occasion, been discussing this and
                    said something like "Maybe I need to lie more on my resume", and I've
                    found it disturbing how many people treat that as a serious suggestion.
                    (For the curious, a lightly edited version of the resume that got
                    me my current job is at <http://www.eskimo.com/~dj3vande/resume/>.
                    Compare with <http://www.seebs.net/res-p.html>.)


                    dave

                    --
                    Dave Vandervies dj3vande@csclub .uwaterloo.ca
                    Well, let's be fair to the lusers here. The human brain was invented at least
                    a couple of tens of millenia ago, and they haven't mastered that yet, either.
                    Telephones are way beyond their league. --Richard Bos in the SDM

                    Comment

                    • Morris Dovey

                      Re: [OT] How many levels of pointers can you have?

                      Dave Vandervies wrote:
                      | In article <87sl8zthuy.fsf @mithril.chroma tico.net>,
                      | Charlton Wilbur <cwilbur@chroma tico.netwrote:
                      ||||||| "OW" == Old Wolf <oldwolf@inspir e.net.nzwrites:
                      ||
                      ||| I've been told that [resume padding] is endemic in American
                      ||| culture, and someone even tried to argue once that if you did
                      ||| NOT lie on your resumi then you were behaving irrationally.
                      ||
                      || There are so many people inflating their resumes that the resume of
                      || someone who has not done the same will look anemic by comparison.
                      |
                      | I have a significantly higher ratio of job offers to job interviews
                      | than most people I know.
                      | This is mostly because I have trouble getting interviews when
                      | looking for a job; most places where I've been interviewed have
                      | seemed to be impressed with me. I have, on more than one occasion,
                      | been discussing this and said something like "Maybe I need to lie
                      | more on my resume", and I've found it disturbing how many people
                      | treat that as a serious suggestion. (For the curious, a lightly
                      | edited version of the resume that got
                      | me my current job is at <http://www.eskimo.com/~dj3vande/resume/>.
                      | Compare with http://www.seebs.net/res-p.html.)

                      I can see that I've been going about this all wrong. I think I'd best
                      attack http://www.iedu.com/mrd/mrd_res1.html with an axe and sprinkle
                      in a bit of humor.

                      --
                      Morris Dovey
                      DeSoto Solar
                      DeSoto, Iowa USA



                      Comment

                      • Joachim Schmitz

                        Re: How many levels of pointers can you have?

                        "Default User" <defaultuserbr@ yahoo.comschrie b im Newsbeitrag
                        news:5d392jF31f ko7U1@mid.indiv idual.net...
                        Joachim Schmitz wrote:
                        >
                        >"Chris Hills" <chris@phaedsys .orgschrieb im Newsbeitrag
                        >news:0dIHrfESj 7aGFAVS@phaedsy s.demon.co.uk.. . >
                        >
                        >
                        Why don't you two learn how to trim your damn quotes?
                        Why should I? Most of the previous posters in that thread didn't (if I got
                        it right, you didn't leave a lot of context to prove) and you didn't
                        complain to them.
                        Instead you swear at me, great :-(

                        Bye, Jojo


                        Comment

                        • Richard Heathfield

                          Re: How many levels of pointers can you have?

                          Joachim Schmitz said:
                          "Default User" schrieb...
                          <snip>
                          >Why don't you two learn how to trim your damn quotes?
                          Why should I?
                          Because it's the right thing to do.
                          Most of the previous posters in that thread didn't
                          What has that to do with it? People will consider you responsible for
                          *your* posting behaviour, not theirs.
                          (if I
                          got it right, you didn't leave a lot of context to prove) and you
                          didn't complain to them.
                          See above, where he says "you two", so he's not just picking on you.
                          Instead you swear at me, great :-(
                          He shouldn't have done that. But that's his problem, not yours. Learning
                          how to snip properly is your problem, not his.

                          --
                          Richard Heathfield
                          "Usenet is a strange place" - dmr 29/7/1999

                          email: rjh at the above domain, - www.

                          Comment

                          • Chris Hills

                            Re: [C99F] How many levels of pointers can you have?

                            In article <21duj4x6ja.ln2 @news.flash-gordon.me.uk>, Flash Gordon
                            <spam@flash-gordon.me.ukwri tes
                            >Richard Heathfield wrote, On 10/06/07 22:46:
                            >Chris Hills said (in a reply to Keith Thompson):
                            >
                            ><snip>
                            >
                            >>There were some discussions as to whether MISRA-C3 should reference
                            >>C99. Any suggestions?
                            > Why bother? Almost nobody uses it. Why reference an almost unused
                            >>standard? I can see why you might want to refer to C99 in, say, a
                            >>tutorial - just to make people aware that it exists and broadly what
                            >>its features are - but otherwise it seems pretty pointless.
                            >
                            ><snip>
                            >
                            >I my opinion it depends on how much clout the MISRA group has. If they
                            >can effectively force the compiler writers for the chips used in their
                            >domain to conform to C99 then them doing so would be a good thing in my
                            >opinion.
                            Why?
                            >However, if the compiler vendors will just ignore it then MISRA should
                            >stick to C95. After all, I don't want my car failing because the code
                            >used a C99 feature that was not properly implemented by the compiler!
                            Actually the compiler writers do seem to take note of MISRA-C. Many
                            include MISRA checkers of MISRA- compliant code. However.... MISRA-C is
                            a coding standard to use with tools that are in use now. That is why
                            it is based on C90+

                            --
                            \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                            \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
                            /\/\/ chris@phaedsys. org www.phaedsys.org \/\/\
                            \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



                            Comment

                            • Chris Hills

                              Re: How many levels of pointers can you have?

                              In article <466C9552.1896E C4E@yahoo.com>, CBFalconer
                              <cbfalconer@yah oo.comwrites
                              >Chris Hills wrote:
                              >Keith Thompson <kst-u@mib.orgwrites
                              >>
                              >... snip ...
                              >>
                              >>(I hope to see that change someday; if gcc's C99 conformance is
                              >>ever completed, that might finally provide the impetus to make
                              >>it happen.)
                              >>
                              >I doubt it. Besides by the time the majority get close to C99
                              >compliance it will be C20** I expect.
                              >>
                              >Many commercial compilers use C99 complaint front ends. It is
                              >just that the seen no need to rush to make the whole compiler
                              >c99 compliant.
                              >
                              >I believe the major problem is updating all those libraries.
                              Not at all. There are several C99 libraries out there. It is just that
                              there is no demand for C99 in the real world.
                              --
                              \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                              \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
                              /\/\/ chris@phaedsys. org www.phaedsys.org \/\/\
                              \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



                              Comment

                              • Default User

                                Re: How many levels of pointers can you have?

                                Joachim Schmitz wrote:
                                "Default User" <defaultuserbr@ yahoo.comschrie b im Newsbeitrag
                                news:5d392jF31f ko7U1@mid.indiv idual.net...
                                Joachim Schmitz wrote:
                                >"Chris Hills" <chris@phaedsys .orgschrieb im Newsbeitrag
                                news:0dIHrfESj7 aGFAVS@phaedsys .demon.co.uk... >

                                Why don't you two learn how to trim your damn quotes?
                                Why should I? Most of the previous posters in that thread didn't (if
                                I got it right, you didn't leave a lot of context to prove) and you
                                didn't complain to them.
                                Try to learn to read. I left two attributions, you and Chris Hills, who
                                are responsible for the back and forth non-trimmed posting. I
                                specifically said "you two".

                                Besides, regardless of whether anybody else did or did not trim quotes,
                                you didn't.




                                Brian

                                Comment

                                Working...