home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 33,046 of 33,346   
   Peter C. Chapin to James K. Lowden   
   Re: compilers, endianness and padding   
   16 May 13 09:59:59   
   
   From: PChapin@vtc.vsc.edu   
      
   On Thu, 16 May 2013, James K. Lowden wrote:   
      
   > Many people wrongly assume that's because C++ is compiled.  It's   
   > not.  It's because of *how* it's compiled.  It's because the C++   
   > compiler discards the metadata, or makes it available only in   
   > nonstandard ways to the debugger, rather than to the language   
   > itself.   
      
   It sounds like you are asking for a standard facility for doing   
   reflection in C++. I agree that would be a useful thing at times. The   
   language does have a few bits and pieces of that feature now (I'm   
   thinking of RTTI, for example), but that's clearly a shadow of what   
   full reflection support would be like.   
      
   I wonder, though, about the runtime costs such a capability would   
   impose and if it could be implemented in such a way as to have zero   
   cost for the many programs that don't need it.   
      
   Peter   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca