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 Back Room
  4. Now I know what type it is!

Now I know what type it is!

Scheduled Pinned Locked Moved The Back Room
csharpc++asp-netquestion
8 Posts 5 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.
  • R Offline
    R Offline
    Rickard Andersson20
    wrote on last edited by
    #1

    Finally I've figured out what kinda data type void* is! It's kind of a bisexual data type, if it want to, it can act as an int, char, float or any data type! Isn't this revolutionary? :-D Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

    J C S 3 Replies Last reply
    0
    • R Rickard Andersson20

      Finally I've figured out what kinda data type void* is! It's kind of a bisexual data type, if it want to, it can act as an int, char, float or any data type! Isn't this revolutionary? :-D Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

      J Offline
      J Offline
      Jorgen Sigvardsson
      wrote on last edited by
      #2

      Rickard Andersson wrote: It's kind of a bisexual data type, if it want to, it can act as an int, char, float or any data type! I think you are talking about transexualism, not bisexualism (there is a, not so subtle, difference you know ;)) However, transsexuals are usually transsexuals by free will. An int wants to be an int. The compiler wants it too. But evil type system marauder (you, the programmer!) doesn't. I think we should all respect the sexualities of all types! BTW, sizeof(void*) != sizeof(float) in most modern 32 bit compilers. Be careful! -- standing so tall, the ground behind no trespassers, on every floor a garden swing, and another door she makes it clear, that everything is hers A place of abode, not far from here, Ms. Van de Veer

      R 1 Reply Last reply
      0
      • J Jorgen Sigvardsson

        Rickard Andersson wrote: It's kind of a bisexual data type, if it want to, it can act as an int, char, float or any data type! I think you are talking about transexualism, not bisexualism (there is a, not so subtle, difference you know ;)) However, transsexuals are usually transsexuals by free will. An int wants to be an int. The compiler wants it too. But evil type system marauder (you, the programmer!) doesn't. I think we should all respect the sexualities of all types! BTW, sizeof(void*) != sizeof(float) in most modern 32 bit compilers. Be careful! -- standing so tall, the ground behind no trespassers, on every floor a garden swing, and another door she makes it clear, that everything is hers A place of abode, not far from here, Ms. Van de Veer

        R Offline
        R Offline
        Rickard Andersson20
        wrote on last edited by
        #3

        Jörgen Sigvardsson wrote: I think you are talking about transexualism, not bisexualism (there is a, not so subtle, difference you know ) That's why I wrote "kind of a bisexual"..... :) Jörgen Sigvardsson wrote: An int wants to be an int. The compiler wants it too. But evil type system marauder (you, the programmer!) doesn't. I think we should all respect the sexualities of all types! Yeah! Jörgen Sigvardsson wrote: BTW, sizeof(void*) != sizeof(float) in most modern 32 bit compilers. Be careful! I will... :suss: Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

        1 Reply Last reply
        0
        • R Rickard Andersson20

          Finally I've figured out what kinda data type void* is! It's kind of a bisexual data type, if it want to, it can act as an int, char, float or any data type! Isn't this revolutionary? :-D Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          It's a bloody disaster. void* is NO data type, which is why you can cast it into any data type. The compiler has no idea, and trusts YOU to know. As has been said, beware...... Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

          R 1 Reply Last reply
          0
          • R Rickard Andersson20

            Finally I've figured out what kinda data type void* is! It's kind of a bisexual data type, if it want to, it can act as an int, char, float or any data type! Isn't this revolutionary? :-D Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

            S Offline
            S Offline
            SimonS
            wrote on last edited by
            #5

            Rickard Andersson wrote: It's kind of a bisexual data type Yup. Just like the variant data type in VB, hay Paul? ;P Cheers, Simon "VB.NET ... the STD of choice", me, internal company memo

            1 Reply Last reply
            0
            • C Christian Graus

              It's a bloody disaster. void* is NO data type, which is why you can cast it into any data type. The compiler has no idea, and trusts YOU to know. As has been said, beware...... Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

              R Offline
              R Offline
              Rickard Andersson20
              wrote on last edited by
              #6

              Christian Graus wrote: It's a bloody disaster. void* is NO data type, But take me as an ABSOLUTLY newbie, which think void* is data type and then got a thought about it could be a bisexual/trasexual datatype! :) Of course it's not a data type if we talk seriously, Christian!! If you declare a void* it is used to point to whatever data type you want and I know that you know that too, but that's why I made this joke (or what to call it) :) Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

              C C 2 Replies Last reply
              0
              • R Rickard Andersson20

                Christian Graus wrote: It's a bloody disaster. void* is NO data type, But take me as an ABSOLUTLY newbie, which think void* is data type and then got a thought about it could be a bisexual/trasexual datatype! :) Of course it's not a data type if we talk seriously, Christian!! If you declare a void* it is used to point to whatever data type you want and I know that you know that too, but that's why I made this joke (or what to call it) :) Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                Rickard Andersson wrote: but that's why I made this joke (or what to call it) I'm not sure what to call it, either :-) Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

                1 Reply Last reply
                0
                • R Rickard Andersson20

                  Christian Graus wrote: It's a bloody disaster. void* is NO data type, But take me as an ABSOLUTLY newbie, which think void* is data type and then got a thought about it could be a bisexual/trasexual datatype! :) Of course it's not a data type if we talk seriously, Christian!! If you declare a void* it is used to point to whatever data type you want and I know that you know that too, but that's why I made this joke (or what to call it) :) Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

                  C Offline
                  C Offline
                  ColinDavies
                  wrote on last edited by
                  #8

                  what about ? void datatype(par1,par2) { return; } I'm sure we can force it to be how we want it !! Regardz Colin J Davies

                  Sonork ID 100.9197:Colin

                  You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

                  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