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. IT & Infrastructure
  4. variables name

variables name

Scheduled Pinned Locked Moved IT & Infrastructure
question
7 Posts 4 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.
  • M Offline
    M Offline
    militiaware
    wrote on last edited by
    #1

    Sometimes i see variable name start with underscore like : __kill or __add_something !! what ___ in the begining of the variable name does mean?

    Faris Madi Nothing Comes Easy (N.C.E.)

    T M 2 Replies Last reply
    0
    • M militiaware

      Sometimes i see variable name start with underscore like : __kill or __add_something !! what ___ in the begining of the variable name does mean?

      Faris Madi Nothing Comes Easy (N.C.E.)

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      no particuliar meaning. in Visual C++ thought, it is to identify what is microsoft specific from what is standard...


      TOXCCT >>> GEII power

      [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

      L M 2 Replies Last reply
      0
      • M militiaware

        Sometimes i see variable name start with underscore like : __kill or __add_something !! what ___ in the begining of the variable name does mean?

        Faris Madi Nothing Comes Easy (N.C.E.)

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        There's no special meaning to the underscore, it's a legal character in variable names like like "x" or "1". In C++, any name containing "__" is reserved for use by the compiler vendor. This is why all the MC++ keywords were prefixed with it, e.g. __gc

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

        1 Reply Last reply
        0
        • T toxcct

          no particuliar meaning. in Visual C++ thought, it is to identify what is microsoft specific from what is standard...


          TOXCCT >>> GEII power

          [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

          L Offline
          L Offline
          Link2006
          wrote on last edited by
          #4

          toxcct wrote:

          in Visual C++ thought, it is to identify what is microsoft specific from what is standard...

          Lots of compiler vendors have their own compiler extensions, not just Microsoft.

          1 Reply Last reply
          0
          • T toxcct

            no particuliar meaning. in Visual C++ thought, it is to identify what is microsoft specific from what is standard...


            TOXCCT >>> GEII power

            [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

            M Offline
            M Offline
            militiaware
            wrote on last edited by
            #5

            Long Discussion...but few hours ago i got information that the underscore refers to local private variable in Java Programming. ....it has Sense :^)

            Faris Madi Nothing Comes Easy (N.C.E.)

            T 1 Reply Last reply
            0
            • M militiaware

              Long Discussion...but few hours ago i got information that the underscore refers to local private variable in Java Programming. ....it has Sense :^)

              Faris Madi Nothing Comes Easy (N.C.E.)

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              not really. firstly, ,you must take care to the language used. some languages may forbid such a character in identifiers names. but in any cases, in both Java/C/C++, underscore has a meaning only for the developper, not for the compiler...


              TOXCCT >>> GEII power

              [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

              M 1 Reply Last reply
              0
              • T toxcct

                not really. firstly, ,you must take care to the language used. some languages may forbid such a character in identifiers names. but in any cases, in both Java/C/C++, underscore has a meaning only for the developper, not for the compiler...


                TOXCCT >>> GEII power

                [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

                M Offline
                M Offline
                militiaware
                wrote on last edited by
                #7

                I agree, and my question from the begining is what the underscore means to the developer. and i got the idea.....thanx guys:)

                Faris Madi Nothing Comes Easy (N.C.E.)

                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