Re: C++/CLI is the way to go
- From: Philip Daniels <Philip Daniels>
- Date: Sat, 20 Jan 2007 17:21:36 +0000
On Sat, 20 Jan 2007 15:46:20 -0000, Jon Skeet [C# MVP]
<skeet@xxxxxxxxx> wrote:
<Philip Daniels <Philip Daniels>> wrote:
<snip>
Agree. The prompt disposal of objects that live for longer than a
function is a problem. It would be really nice to have a new
attribute:
[ReferenceCount(true)]
class MyClass { ... }
The CLR team investigated all manner of solutions fairly exhaustively.
Because you could do something like:
object o = instanceOfMyClass;
object x = y;
etc, *every* assignment that could *possibly* be a reference-counted
type would need to check whether or not reference counting was
required. That's a painful performance hit.
I can see that would be a problem.
--
Philip Daniels
.
- References:
- A re-announce on GC's defects
- From: Born
- C++/CLI is the way to go
- From: Born
- Re: C++/CLI is the way to go
- From: Willy Denoyette [MVP]
- Re: C++/CLI is the way to go
- From: Andre Kaufmann
- Re: C++/CLI is the way to go
- From: Philip Daniels
- Re: C++/CLI is the way to go
- From: Jon Skeet [C# MVP]
- A re-announce on GC's defects
- Prev by Date: Re: advice on how to procede with this project
- Next by Date: Re: how do I launch my c# application from a web page?
- Previous by thread: Re: C++/CLI is the way to go
- Next by thread: Should upgrade to .NET 2.0 or .NET 3.0?
- Index(es):
Relevant Pages
|