Subscribe: Stan Lippman's BLog
Added By: Feedage Forager Feedage Grade B rated
Language: English
cli  formal  function  literal  net  recently  stl net  stl  string literal  string  translation guide  typename  types cli  types  visual 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Stan Lippman's BLog

Stan Lippman's BLog


Last Build Date: Wed, 08 Dec 2004 00:26:00 +0000


The String Literal Returns

Wed, 08 Dec 2004 00:26:00 +0000

In the last entry, I celebrated what I felt was an elegant solution to the problem of the string literal in the context of overload function resolution. But it turns out there is another area in which the string literal proves problematic. Who would have thought such a foobar kind of entity could cause so...

The Type of a String Literal Revisited …

Sat, 04 Dec 2004 09:14:00 +0000

In the course of these entries, I have twice addressed the issue of the type of a string literal under C++/CLI -- in particular when resolving an overloaded function call. The issue is illustrated in the following example, public ref class R { public:   void foo( System::String^ ); // (1)   void foo( std::string...

A Primer on the Interior Pointer

Fri, 27 Aug 2004 01:07:00 +0000

A value type is typically not subject to garbage collection except in two cases: (a) when it is the subject of a box operation, either explicit or implicit, such as, void f( int ix ) {     // explicit placement on the CLI heap     int^ result = gcnew int( -1 );       //...

Translation Guide between Managed Extensions and the new C++/CLI binding Available

Sat, 21 Aug 2004 22:27:00 +0000

C and C++ programmers are notorious for relying on pointer indirection, and it seems blog entries are not immune to this. A translation guide attempting to exhaustively detail the differences between the original Managed Extensions for C++ (released with Visual Studio.NET) and the revised C++ binding to the CLI scheduled for Visual Studio 2005 (and...

An Tour of the STL.NET

Sat, 14 Aug 2004 00:42:00 +0000

Part of the (reasonably pleasant) distractions from posting on this blog recently has been working up the first in a series of articles on STL.NET for our Visual C++ MSDN web site. The amount of work to get from an articulation of a topic to a formal publication of it is an amazingly labor-intensive 10%...

Why C++ Supports both Class and Typename for Type Parameters

Wed, 11 Aug 2004 09:32:00 +0000

Recently, someone asked me why we support both class and typename within C++ to indicate a type parameter since the keywords do not hold any platform significance – for example, class is not meant to suggest a native type nor is typename meant to suggest a CLI type. Rather, both equivalently indicate that the name...

Why C++/CLI Supports both Templates for CLI Types and the CLI Generic Mechanism

Thu, 05 Aug 2004 21:27:00 +0000

I've been recently puzzling out a strategy for presenting the two mechanisms supporting parameterized types available to the C++/CLI  programmer: she can use either the template mechanism adapted for use with CLI types, or the CLI generic mechanism. This is not unique to the support of parameterized types, of course, but it seems a lightening...

Identifying the Candidate Function Set

Sun, 01 Aug 2004 23:58:00 +0000

Sorry it is taking me so long these days. I am in the throes of more formal writing – a book on our CLI binding for C++, and a series of articles for our Visual C++ MSDN website on STL.NET. And my translation tool is happily going through a formal test cycle – thank you...

The Value of a Value Class

Fri, 23 Jul 2004 12:33:00 +0000

A reader questions the nature of the value type when he writes,   Sender: Slawomir Lisznianski=====================================1) Lack of support for SMFs makes value classes unnatural to use. An example in the C++/CLI spec at page 33 is incorrect, as it uses constructors with value classes. In fact, quite a few value class examples in the...

String Literal Conversion to String: Is It a Disaster?

Fri, 23 Jul 2004 08:49:00 +0000

A reader asks,   Sender: Jackre: String Literals are now a Trivial Conversion to StringWon't it break most of existing libraries who will try to port to C++/CLI? One override for String^ will break a lot of user code and make calls for the overriden function with string literals look much uglier. Maybe it is...