C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Pure C++

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated)
View previous topic :: View next topic  
Author Message
Le Chaud Lapin
Guest





PostPosted: Thu Dec 15, 2005 11:21 pm    Post subject: Pure C++ Reply with quote



While browsing around Microsoft Visual Studio 2005, I somehow found
myself on page labeled "Pure C++", but containing code which I find
hard to interpret. Is this code really part of C++ now, or is it not?
The title of the column implies that it is, and I remember having a
(heated) discussion with some of you about whether CLI/CLR would be
incorporated, and it seemed that Microsoft would eventually get its
way. Have they, and is this really "pure C++"?

-Le Chaud Lapin-

Code from:
http://msdn.microsoft.com/msdnmag/issues/05/12/PureC/default.aspx

for each( String ^s in Enum::GetNames(
status::typeid ))
Console::WriteLine( s );

void DisplayType( Object^ o )
{
if ( !o ) return;

Type^ t = o->GetType();
Console::WriteLine( "Type is {0} : {1}",
t->Name, t->FullName );
}

Type^ ts = String::typeid;
Type^ ti = Int32::typeid;

array<Type^>^ types = a1->GetTypes();
Type^ query = a1->GetType( "Query" );


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
Alan Griffiths
Guest





PostPosted: Fri Dec 16, 2005 10:33 am    Post subject: Re: Pure C++ Reply with quote



It is annoying, but I know many developers that still refer to C++ as
"C". It isn't so surprising that a few refer to "C++/CLI" as "C++".
(After all "C++/CLI" is a bit of a mouthful.)

--
Alan Griffiths <http://www.octopull.demon.co.uk/>
Editor, Overload <http://www.accu.org/>


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
Gerhard Menzl
Guest





PostPosted: Fri Dec 16, 2005 10:34 am    Post subject: Re: Pure C++ Reply with quote



Le Chaud Lapin wrote:

Quote:
While browsing around Microsoft Visual Studio 2005, I somehow found
myself on page labeled "Pure C++", but containing code which I find
hard to interpret. Is this code really part of C++ now, or is it not?
The title of the column implies that it is, and I remember having a
(heated) discussion with some of you about whether CLI/CLR would be
incorporated, and it seemed that Microsoft would eventually get its
way. Have they, and is this really "pure C++"?

-Le Chaud Lapin-

Code from:
http://msdn.microsoft.com/msdnmag/issues/05/12/PureC/default.aspx

for each( String ^s in Enum::GetNames(
status::typeid ))
Console::WriteLine( s );

void DisplayType( Object^ o )
{
if ( !o ) return;

Type^ t = o->GetType();
Console::WriteLine( "Type is {0} : {1}",
t->Name, t->FullName );
}

Type^ ts = String::typeid;
Type^ ti = Int32::typeid;

array<Type^>^ types = a1->GetTypes();
Type^ query = a1->GetType( "Query" );

This is pure C++/CLI. However, if by "pure" you mean conforming to
ISO/IEC 14882:1998, the answer is no.

--
Gerhard Menzl

#dogma int main ()

Humans may reply by replacing the thermal post part of my e-mail address
with "kapsch" and the top level domain part with "net".

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.