sequence points

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ramasubramanian.rahul@gmail.com

    #1

    sequence points

    what are sequence points in c
    any pointers to some resource which explains them in detail will be of
    much help...
    Thanks in advance
    kind regards
    Rahul

  • Richard Heathfield

    #2
    Re: sequence points

    ramasubramanian .rahul@gmail.co m said:
    what are sequence points in c
    They are points within your program at which it is guaranteed that
    everything that should have happened (and in particular all the side
    effects) up till this point /has/ happened (or won't ever happen!). You get
    them at the end of expression statements, and at various other places as
    well.
    any pointers to some resource which explains them in detail will be of
    much help...
    See "C: A Reference Manual", by Harbison & Steele. My 4th edition carries a
    reasonable explanation on p83, and again on pages 228-229.

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

    email: rjh at above domain (but drop the www, obviously)

    Comment

    • Tejas Kokje

      #3
      Re: sequence points

      ramasubramanian .rahul@gmail.co m wrote:
      what are sequence points in c
      any pointers to some resource which explains them in detail will be of
      much help...
      Thanks in advance
      kind regards
      Rahul


      Google is your friend.

      Tejas Kokje

      Comment

      • Cong Wang

        #4
        Re: sequence points



        On Oct 12, 2:13 pm, Richard Heathfield <inva...@invali d.invalid>
        wrote:
        any pointers to some resource which explains them in detail will be of
        much help...See "C: A Reference Manual", by Harbison & Steele. My 4th edition carries a
        reasonable explanation on p83, and again on pages 228-229.
        Your book "C Unleashed"? I like it very much. Thanks! ;-)

        Comment

        • Richard Heathfield

          #5
          Re: sequence points

          Cong Wang said:
          >
          >
          On Oct 12, 2:13 pm, Richard Heathfield <inva...@invali d.invalid>
          wrote:
          any pointers to some resource which explains them in detail will be of
          much help...See "C: A Reference Manual", by Harbison & Steele. My 4th
          edition carries a
          >reasonable explanation on p83, and again on pages 228-229.
          >
          Your book "C Unleashed"? I like it very much. Thanks! ;-)
          You're welcome. I'm glad you're enjoying it.

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

          email: rjh at above domain (but drop the www, obviously)

          Comment

          • Christopher Benson-Manica

            #6
            Re: sequence points

            Richard Heathfield <invalid@invali d.invalidwrote:

            ("them" equals "sequence points")
            any pointers to some resource which explains them in detail will be of
            much help...
            See "C: A Reference Manual", by Harbison & Steele. My 4th edition carries a
            reasonable explanation on p83, and again on pages 228-229.
            Or, alternatively, OP can get the "from the horse's mouth" explanation
            from 5.1.2.3, subparagraph 2, in the draft n869 standard. (OP can,
            presumably, use Google to locate this document.)

            --
            C. Benson Manica | I *should* know what I'm talking about - if I
            cbmanica(at)gma il.com | don't, I need to know. Flames welcome.

            Comment

            • Richard Heathfield

              #7
              Re: sequence points

              Christopher Benson-Manica said:
              Richard Heathfield <invalid@invali d.invalidwrote:
              >
              >See "C: A Reference Manual", by Harbison & Steele. My 4th edition carries
              >a reasonable explanation on p83, and again on pages 228-229.
              >
              Or, alternatively, OP can get the "from the horse's mouth" explanation
              from 5.1.2.3, subparagraph 2, in the draft n869 standard. (OP can,
              presumably, use Google to locate this document.)
              Yes, but ISO Standards tend to make lousy tutorials. :-)

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

              email: rjh at above domain (but drop the www, obviously)

              Comment

              • Richard Tobin

                #8
                Re: sequence points

                In article <_oudnTvOQIQPNr PYnZ2dneKdnZydn Z2d@bt.com>,
                Richard Heathfield <invalid@invali d.invalidwrote:
                >Yes, but ISO Standards tend to make lousy tutorials. :-)
                I've always found ISO 8859-1 quite understandable.

                -- Richard

                Comment

                • Flash Gordon

                  #9
                  Re: sequence points

                  Christopher Benson-Manica wrote:
                  Richard Heathfield <invalid@invali d.invalidwrote:
                  >
                  ("them" equals "sequence points")
                  >
                  >>any pointers to some resource which explains them in detail will be of
                  >>much help...
                  >
                  >See "C: A Reference Manual", by Harbison & Steele. My 4th edition carries a
                  >reasonable explanation on p83, and again on pages 228-229.
                  >
                  Or, alternatively, OP can get the "from the horse's mouth" explanation
                  from 5.1.2.3, subparagraph 2, in the draft n869 standard. (OP can,
                  presumably, use Google to locate this document.)
                  There is now a link to a copy of it on the CLC wiki. I used the way back
                  machine to find Dan Pop's copy and uploaded it to my site. If Dan
                  objects (which I think is unlikely) I can remove it. Links to that and
                  other versions of the standard are here http://clc-wiki.net/wiki/c_standard

                  P.S. Anyone know how Dan is doing?
                  --
                  Flash Gordon
                  Hosting the CLC Wiki on an actively maintained server as a repayment for
                  all I've learnt here.
                  All contributions to the Wiki are welcome.

                  Comment

                  • CBFalconer

                    #10
                    Re: sequence points

                    Richard Heathfield wrote:
                    Christopher Benson-Manica said:
                    >Richard Heathfield <invalid@invali d.invalidwrote:
                    >>
                    >>See "C: A Reference Manual", by Harbison & Steele. My 4th edition
                    >>carries a reasonable explanation on p83, and again on pages 228-229.
                    >>
                    >Or, alternatively, OP can get the "from the horse's mouth" explanation
                    >from 5.1.2.3, subparagraph 2, in the draft n869 standard. (OP can,
                    >presumably, use Google to locate this document.)
                    >
                    Yes, but ISO Standards tend to make lousy tutorials. :-)
                    Where is Dan Pop when you need him? :-)

                    --
                    Some informative links:
                    <news:news.anno unce.newusers
                    <http://www.geocities.c om/nnqweb/>
                    <http://www.catb.org/~esr/faqs/smart-questions.html>
                    <http://www.caliburn.nl/topposting.html >
                    <http://www.netmeister. org/news/learn2quote.htm l>
                    <http://cfaj.freeshell. org/google/>


                    Comment

                    • CBFalconer

                      #11
                      Re: sequence points

                      Flash Gordon wrote:
                      >
                      .... snip ...
                      >
                      P.S. Anyone know how Dan is doing?
                      I've asked a few times and heard zip-a-dee-doo-dah. Seems ominous.

                      --
                      Some informative links:
                      <news:news.anno unce.newusers
                      <http://www.geocities.c om/nnqweb/>
                      <http://www.catb.org/~esr/faqs/smart-questions.html>
                      <http://www.caliburn.nl/topposting.html >
                      <http://www.netmeister. org/news/learn2quote.htm l>
                      <http://cfaj.freeshell. org/google/>


                      Comment

                      • Eric Sosman

                        #12
                        Re: sequence points

                        CBFalconer wrote:
                        Richard Heathfield wrote:
                        >
                        >>Christopher Benson-Manica said:
                        >>
                        >>>Richard Heathfield <invalid@invali d.invalidwrote:
                        >>>
                        >>>
                        >>>>See "C: A Reference Manual", by Harbison & Steele. My 4th edition
                        >>>>carries a reasonable explanation on p83, and again on pages 228-229.
                        >>>
                        >>>Or, alternatively, OP can get the "from the horse's mouth" explanation
                        >>>from 5.1.2.3, subparagraph 2, in the draft n869 standard. (OP can,
                        >>>presumably , use Google to locate this document.)
                        >>
                        >>Yes, but ISO Standards tend to make lousy tutorials. :-)
                        >
                        >
                        Where is Dan Pop when you need him? :-)
                        Writing a blistering critique of people who don't understand
                        Section 8.

                        --
                        Eric Sosman
                        esosman@acm-dot-org.invalid

                        Comment

                        • Richard Heathfield

                          #13
                          Re: sequence points

                          CBFalconer said:
                          Flash Gordon wrote:
                          >>
                          ... snip ...
                          >>
                          >P.S. Anyone know how Dan is doing?
                          >
                          I've asked a few times and heard zip-a-dee-doo-dah. Seems ominous.
                          Nah.

                          Lawrence dropped out for a couple of years, then popped up out of nowhere
                          for a few months, and has since vanished again. (I hope he'll be back
                          soon.) I dropped out for well over a year, and then re-materialised. Chris
                          D disappeared for a while, but has returned. We hardly ever see Steve
                          nowadays, but just occasionally, he sticks his head round the door to see
                          what's going on.

                          It happens. I'm sure Dan is fine.

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

                          email: rjh at above domain (but drop the www, obviously)

                          Comment

                          • Charles Richmond

                            #14
                            Re: sequence points

                            CBFalconer wrote:
                            >
                            Flash Gordon wrote:
                            ... snip ...

                            P.S. Anyone know how Dan is doing?
                            >
                            I've asked a few times and heard zip-a-dee-doo-dah. Seems ominous.
                            >
                            *** Error 341: "zip-a-dee-doo-dah" is not a valid C identifier. ;-)

                            --
                            +----------------------------------------------------------------+
                            | Charles and Francis Richmond richmond at plano dot net |
                            +----------------------------------------------------------------+

                            Comment

                            • pete

                              #15
                              Re: sequence points

                              CBFalconer wrote:
                              >
                              Flash Gordon wrote:
                              ... snip ...

                              P.S. Anyone know how Dan is doing?
                              >
                              I've asked a few times and heard zip-a-dee-doo-dah. Seems ominous.
                              I've been considering starting a rumor of his death.

                              --
                              pete

                              Comment

                              Working...