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,273 of 33,346   
   Martin Bonner to All   
   Re: Variable declaration and initializat   
   15 Jan 14 22:46:51   
   
   From: martinfrompi@yahoo.co.uk   
      
   On Wednesday, January 15, 2014 1:06:25 PM UTC, Öö Tiib wrote:   
   > On Wednesday, 15 January 2014 02:36:11 UTC+2, Martin Bonner  wrote:   
   > > Nit:  In C++ that would have to be written as:   
   > >      void *p = static_cast(&p);   
   >   
   > If it is some new draft of C++ then please specify.   
      
   Good catch.  I had got confused with the fact that   
      void *p = NULL;   
      char *cp = p;   
   is legal C but not C++.   
      
   (First rule of Usenet: Quickest way to find out the trust of a statement   
   is to post it; false statements will be corrected rapidly.)   
      
   > If you just made  mistake,   
   Yup   
   > then there are nice tools for testing your claims:   
   > http://ideone.com/SQH3yu   
      
   [fx: wrinkles nose]   
   That shows what the implementation accepts.  It doesn't prove anything   
   about what the standard says.   
      
      
   --   
         [ 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