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. The Lounge
  3. cdecl

cdecl

Scheduled Pinned Locked Moved The Lounge
com
18 Posts 12 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 Mladen Jankovic

    C gibberish to English translator[^] char ** const * const x -> declare x as const pointer to const pointer to pointer to char

    GALex

    A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #3

    Or, for those don't mind the excessively long real link: http://www.cdecl.org/ :doh:

    Thou mewling ill-breeding pignut!

    1 Reply Last reply
    0
    • M Mladen Jankovic

      C gibberish to English translator[^] char ** const * const x -> declare x as const pointer to const pointer to pointer to char

      GALex

      K Offline
      K Offline
      Kevin Marois
      wrote on last edited by
      #4

      Life is WAY too short to code in C/C++. When a translater is needed, it's FAR too complicated to start with.

      Everything makes sense in someone's mind

      R L L M G 6 Replies Last reply
      0
      • K Kevin Marois

        Life is WAY too short to code in C/C++. When a translater is needed, it's FAR too complicated to start with.

        Everything makes sense in someone's mind

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #5

        Kevin Marois wrote:

        Life is WAY too short to code in C/C++.

        Live fast, die soon. :)

        "Real men drive manual transmission" - Rajesh.

        1 Reply Last reply
        0
        • K Kevin Marois

          Life is WAY too short to code in C/C++. When a translater is needed, it's FAR too complicated to start with.

          Everything makes sense in someone's mind

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #6

          Why? What's so terribly hard about a pointer? Or a pointer that points to yet another pointer? Or giving back all books memory you borrow from a library the operating system? Isn't life also too short to figure out why some automatons you have relied on have failed to guess your intentions once again or to learn endless rules that supossedly prevent them from reaching that point?

          At least artificial intelligence already is superior to natural stupidity

          A 1 Reply Last reply
          0
          • L Lost User

            Why? What's so terribly hard about a pointer? Or a pointer that points to yet another pointer? Or giving back all books memory you borrow from a library the operating system? Isn't life also too short to figure out why some automatons you have relied on have failed to guess your intentions once again or to learn endless rules that supossedly prevent them from reaching that point?

            At least artificial intelligence already is superior to natural stupidity

            A Offline
            A Offline
            AspDotNetDev
            wrote on last edited by
            #7

            CDP1802 wrote:

            What's so terribly hard about a pointer?

            Nothing is bad about a pointer; now, 50,000 pointers is a different issue entirely (assuming your app will have more than one pointer).

            Thou mewling ill-breeding pignut!

            L 1 Reply Last reply
            0
            • K Kevin Marois

              Life is WAY too short to code in C/C++. When a translater is needed, it's FAR too complicated to start with.

              Everything makes sense in someone's mind

              L Offline
              L Offline
              LloydA111
              wrote on last edited by
              #8

              Please tell me more about how you write operating systems and drivers and embedded systems in something other than C. Oh, wait...


              See if you can crack this: b749f6c269a746243debc6488046e33f
              So far, no one seems to have cracked this!

              The unofficial awesome history of Code Project's Bob! "People demand freedom of speech to make up for the freedom of thought which they avoid."

              U C 3 Replies Last reply
              0
              • K Kevin Marois

                Life is WAY too short to code in C/C++. When a translater is needed, it's FAR too complicated to start with.

                Everything makes sense in someone's mind

                M Offline
                M Offline
                Mladen Jankovic
                wrote on last edited by
                #9

                Kevin Marois wrote:

                Life is WAY too short

                The same thing could be said for using managed applications.

                GALex

                1 Reply Last reply
                0
                • A AspDotNetDev

                  CDP1802 wrote:

                  What's so terribly hard about a pointer?

                  Nothing is bad about a pointer; now, 50,000 pointers is a different issue entirely (assuming your app will have more than one pointer).

                  Thou mewling ill-breeding pignut!

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #10

                  Oh please. That's why we also don't have to use global variables as only means of storing them anymore. We can encapsulate them in objects or structs. Or we can arrange them in lists, arrays, or whatever you can think of. Yes, you must oversee the entire lifecycle of an object, but no garbage collection can really take that off yor hands completely. And does it really matter that you have to use the destructor of an object to clean up at the end of its lifecycle? To be honest, I still do that by implementing IDispose and Finalize() (which you may coincidentally implement like a C++ destructor as syntactic sugar). The real difference is that you are free to do many potentially dangerous things. When I get a choice between safety or greater control, then I pick control. C++ assumes that you know what you are doing and avoids wasting resources on checking things that need not to be checked, managing things that need not to be managed or preventing things that need not be prevented. That leaves the responsibility to take care of those things with you and that is also then the place where you need some knowledge, experience and good practices.

                  At least artificial intelligence already is superior to natural stupidity

                  M 1 Reply Last reply
                  0
                  • L Lost User

                    Oh please. That's why we also don't have to use global variables as only means of storing them anymore. We can encapsulate them in objects or structs. Or we can arrange them in lists, arrays, or whatever you can think of. Yes, you must oversee the entire lifecycle of an object, but no garbage collection can really take that off yor hands completely. And does it really matter that you have to use the destructor of an object to clean up at the end of its lifecycle? To be honest, I still do that by implementing IDispose and Finalize() (which you may coincidentally implement like a C++ destructor as syntactic sugar). The real difference is that you are free to do many potentially dangerous things. When I get a choice between safety or greater control, then I pick control. C++ assumes that you know what you are doing and avoids wasting resources on checking things that need not to be checked, managing things that need not to be managed or preventing things that need not be prevented. That leaves the responsibility to take care of those things with you and that is also then the place where you need some knowledge, experience and good practices.

                    At least artificial intelligence already is superior to natural stupidity

                    M Offline
                    M Offline
                    Mladen Jankovic
                    wrote on last edited by
                    #11

                    CDP1802 wrote:

                    IDispose and Finalize()

                    They are vastly inferior to C++ destructors. Give me RAII, or give me Death!

                    GALex

                    1 Reply Last reply
                    0
                    • L LloydA111

                      Please tell me more about how you write operating systems and drivers and embedded systems in something other than C. Oh, wait...


                      See if you can crack this: b749f6c269a746243debc6488046e33f
                      So far, no one seems to have cracked this!

                      The unofficial awesome history of Code Project's Bob! "People demand freedom of speech to make up for the freedom of thought which they avoid."

                      U Offline
                      U Offline
                      unitrunker
                      wrote on last edited by
                      #12

                      Here's a prime example ... http://en.wikipedia.org/wiki/Prime_Computer[^]

                      1 Reply Last reply
                      0
                      • L LloydA111

                        Please tell me more about how you write operating systems and drivers and embedded systems in something other than C. Oh, wait...


                        See if you can crack this: b749f6c269a746243debc6488046e33f
                        So far, no one seems to have cracked this!

                        The unofficial awesome history of Code Project's Bob! "People demand freedom of speech to make up for the freedom of thought which they avoid."

                        U Offline
                        U Offline
                        unitrunker
                        wrote on last edited by
                        #13

                        ... and another. http://www.menuetos.net/[^]

                        L 1 Reply Last reply
                        0
                        • L LloydA111

                          Please tell me more about how you write operating systems and drivers and embedded systems in something other than C. Oh, wait...


                          See if you can crack this: b749f6c269a746243debc6488046e33f
                          So far, no one seems to have cracked this!

                          The unofficial awesome history of Code Project's Bob! "People demand freedom of speech to make up for the freedom of thought which they avoid."

                          C Offline
                          C Offline
                          CPallini
                          wrote on last edited by
                          #14

                          Java, C# & VB.NET, of course. :-D OK, going back to assembly.

                          Veni, vidi, vici.

                          1 Reply Last reply
                          0
                          • K Kevin Marois

                            Life is WAY too short to code in C/C++. When a translater is needed, it's FAR too complicated to start with.

                            Everything makes sense in someone's mind

                            G Offline
                            G Offline
                            Gary R Wheeler
                            wrote on last edited by
                            #15

                            I'd fire anyone working for me who used a declaration like the OP's example. Encapsulation and information hiding principles dictate that you wouldn't dig that far into a data structure using direct pointers.

                            Software Zen: delete this;

                            1 Reply Last reply
                            0
                            • U unitrunker

                              ... and another. http://www.menuetos.net/[^]

                              L Offline
                              L Offline
                              LloydA111
                              wrote on last edited by
                              #16

                              Yes I am aware of Fortran and Assembly being used in operating systems, as I myself work on operating system programming, I was simple ranting at how the poster had suggested that C and C++ are not useful.


                              See if you can crack this: b749f6c269a746243debc6488046e33f
                              So far, no one seems to have cracked this!

                              The unofficial awesome history of Code Project's Bob! "People demand freedom of speech to make up for the freedom of thought which they avoid."

                              1 Reply Last reply
                              0
                              • M Mladen Jankovic

                                C gibberish to English translator[^] char ** const * const x -> declare x as const pointer to const pointer to pointer to char

                                GALex

                                V Offline
                                V Offline
                                Vikram A Punathambekar
                                wrote on last edited by
                                #17

                                Arguably a shameless plug, but my article is several years old and I'm neither a dev anymore nor care about the points.... How to interpret complex C/C++ declarations[^] It talks about cdecl as well :)

                                Cheers, विक्रम "We have already been through this, I am not going to repeat myself." - fat_boy, in a global warming thread :doh:

                                1 Reply Last reply
                                0
                                • K Kevin Marois

                                  Life is WAY too short to code in C/C++. When a translater is needed, it's FAR too complicated to start with.

                                  Everything makes sense in someone's mind

                                  V Offline
                                  V Offline
                                  Vivi Chellappa
                                  wrote on last edited by
                                  #18

                                  Life is too short to be spent coding. ;P

                                  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