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 32,442 of 33,346    |
|    Dave Harris to Le Chaud Lapin    |
|    Re: Standard Versus Non-Standard C++    |
|    02 Jul 12 06:53:46    |
      From: brangdon@cix.compulink.co.uk              jaibuduvin@gmail.com (Le Chaud Lapin) wrote (abridged):       > // Is this C++?       > SyndicationClient^ client = ref new SyndicationClient();       > for(wstring url : urls)       > // Perhaps it is, and my compiler is simply out of compliance.              The for-loop is C++. That syntax is one of the improvements in C++11.       The other line is not standard C++.              > Aside from the non-standard syntax, which, alone would break any       > compliant C++ compiler, ...              You say that as if it were a bad thing. It's actually key to being a       legitimate C++ extension. The standard says:               A conforming implementation may have extensions (including        additional library functions), provided they do not alter the        behavior of any well-formed program. Implementations are required        to diagnose programs that use such extensions that are ill-formed        according to this Standard. Having done so, however, they can        compile and execute such programs.              So a requirement for Microsoft was that every C++/CX program that also       conforms to standard C++ syntax, have the same semantics as the       corresponding C++ program, and all the new behaviour be triggered by       new syntax.              -- Dave Harris, Nottingham, UK.                     --        [ 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