Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: A Design Ra...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 6659 of 9984
Post > Topic >>

Re: A Design Rationale for C++/CLI

by "Dilip" <rdilipk@[EMAIL PROTECTED] > Feb 20, 2006 at 06:46 PM

Bronek Kozicki wrote:
> just a question: is it possible to gcnew a C++ type (that is the one
> with C++ semantics, defined without use of C++/CLI keywords)?

This question was asked many times earlier.  I found a blog post by
Sutter explaining this here:
http://pluralsight.com/blogs/hsutter/archive/2004/10/14.aspx

Of particular interest is this statement:
"In C++/CLI, GC-ness is per object. Now, we didn't get to implementing
all of it in this first round: In the version now in beta you can
already put an object of any type on the stack, but you can only
__gcnew a managed type__ and you can only __new a native type__. But
the hooks are there, and intentionally so: After this release, we
definitely intend to allow gcnew of any type (including native types,
so that you will get GC for native objects too, at the usually minor
cost of an under-the-covers proxy) and new of any type (including CLI
types)."

This post was around 10/2004 -- I have no idea if C++/CLI that was
released along with .NET 2.0 around 11/2005 allows you to instantiate a
native C++ type with gcnew.


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




 4 Posts in Topic:
A Design Rationale for C++/CLI
Herb Sutter <hsutter@[  2006-02-19 06:35:56 
Re: A Design Rationale for C++/CLI
Bronek Kozicki <brok@[  2006-02-19 10:22:55 
Re: A Design Rationale for C++/CLI
"Dilip" <rdi  2006-02-20 18:46:36 
Re: A Design Rationale for C++/CLI
"Andrew Browne"  2006-02-22 16:21:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 8:41:38 CDT 2008.