Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. C++ needs undefined behavior, but maybe less

C++ needs undefined behavior, but maybe less

Scheduled Pinned Locked Moved The Insider News
c++csscomadobequestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    think-cell[^]:

    The behavior of a C++ program is defined by the C++ standard. However, it does not describe the behavior to the full extent and leaves some of it up in the air: the implementation-defined, unspecified, and undefined behavior.

    I thought that was C++'s middle name?

    N 1 Reply Last reply
    0
    • K Kent Sharkey

      think-cell[^]:

      The behavior of a C++ program is defined by the C++ standard. However, it does not describe the behavior to the full extent and leaves some of it up in the air: the implementation-defined, unspecified, and undefined behavior.

      I thought that was C++'s middle name?

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      Kent Sharkey wrote:

      and leaves some of it up in the air: the implementation-defined, unspecified, and undefined behavior.

      Not to mention the undefined errors :rolleyes: :laugh:

      M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

      D 1 Reply Last reply
      0
      • N Nelek

        Kent Sharkey wrote:

        and leaves some of it up in the air: the implementation-defined, unspecified, and undefined behavior.

        Not to mention the undefined errors :rolleyes: :laugh:

        M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

        D Offline
        D Offline
        Daniel Pfeffer
        wrote on last edited by
        #3

        In fairness, if the C++ Standard specified the form of every possible error in a program, it would be at least twice as long as it already is.

        Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

        N 1 Reply Last reply
        0
        • D Daniel Pfeffer

          In fairness, if the C++ Standard specified the form of every possible error in a program, it would be at least twice as long as it already is.

          Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

          N Offline
          N Offline
          Nelek
          wrote on last edited by
          #4

          In the time I was programming industrial lines with PLC and Robots I always said: - Automatic sequences are the easy part. The difficult one is the home run / reset run, as the "initial" position for it will be after manual mode (a.k.a. wherever the user stops with or without thinking about it) or an error.

          M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups