Herb Sutter's Blog

Simulating try/finally in plain C++ (without the C++/CLI extensions)

Dan wrote: I think this is close enough to try/finally in C++: Resource* pRes = new Resource; try {...

Date: 09/06/2004

Downloading the Express beta compiler

Mark wrote: I have downloaded the Visual C++ Express and have been trying out simple programs. I...

Date: 09/04/2004

C++/CLI timeline and one-line description

Ioannis Vranos wrote: There is an upcoming C++/CLI standard (currently draft, official document...

Date: 09/03/2004

finally + destructors = best of both worlds

On comp.lang.c++.moderated, "Howard" <alicebt@hotmail.com> wrote: You know how we use try { }...

Date: 09/03/2004

An update to the C++/CLI draft

An interim updated snapshot of the C++/CLI draft standard is now available: C++/CLI Language...

Date: 08/03/2004

A new article on C++/CLI

Kenny Kerr announced a cool article he wrote about C++/CLI on MSDN: C++/CLI: The Most Powerful...

Date: 08/03/2004

C++ RAII compared with Java Dispose pattern

Earlier today I wrote that: “The C++ destructor model is exactly the same as the Dispose and...

Date: 07/31/2004

More on % (managed reference)

Keith Duggar asked: Ok, I'm missing a basic point here. So, out of curiousity: 1) Is there any...

Date: 07/31/2004

Using % and &

This post brings together three related questions and answers posted recently on...

Date: 07/31/2004

The object lifetime issue is the same in C++, Java, C#

I’m going to echo various interesting pieces of newsgroup discussion here. Check out the...

Date: 07/31/2004

How much C++/CLI syntax do you need to use all of the .NET Frameworks?

The short answer to the question in the title is: In Whidbey, ^ and gcnew are mostly all you're...

Date: 12/15/2003

Why not limit GC to CLI types?

Edward Diener made the observation (emphasis is mine): I would much rather the syntax remained as...

Date: 12/05/2003

Why "gcnew" instead of just plain "new"?

Edward Diener asked: I don't see why you don't use just 'new' rather than 'gcnew' ? The type of T...

Date: 12/05/2003

C++/CLI keywords: Under the hood

C++/CLI specifies several keywords as extensions to ISO C++. The way they are handled falls into...

Date: 11/23/2003

Why "gcnew T" instead of "new (gc) T"?

On comp.lang.c++.moderated, Peter Lundblad wrote: I also don't see the need for gcnew. Why not use...

Date: 11/22/2003

C++/CLI candidate base document now available

Today the C++/CLI candidate base document was posted, and it's freely available for download. This...

Date: 11/21/2003

Why R^ instead of cli::handle?

Nicola Musatti asked the following excellent question: The hat symbol and gcnew could be replaced...

Date: 11/21/2003

Why "ref class X", not just "class X : System::Object"?

On comp.lang.c++.moderated, Andrew Browne wrote: The goals of the C++/CLI proposal are good ones, I...

Date: 11/18/2003

Q: Why keywords instead of __keywords? A: We already tried __keywords; they failed.

Last week on comp.lang.c++.moderated, Nicola Musatti wondered why C++/CLI would use keywords that...

Date: 11/17/2003

Q: Aren't C++ pointers alone enough to "handle" GC? A: No.

A few days ago on news:comp.lang.c++.moderated, Nicola Musatti wrote: As for GC, pure...

Date: 11/17/2003

Q: Could the CLI binding become required? A: No.

A few days ago on news:comp.lang.c++.moderated, "Chris" asked: Here is a paranoid question: Is there...

Date: 11/17/2003

Help | About

Welcome! My primary day job these days is that I'm an Architect on the Visual C++ team at...

Date: 11/17/2003