> Optimally, you would like to have commit/rollback behavior in the face
> of exceptions. The .NET garbage collector provides little support for
> this type of exception safety.
>
> See basic and strong exception guarantees.
> http://www.boost.org/more/generic_exception_safety.html

This is EXACTLY what I was talking about. ;-)

> Consider also that Chris Sells is trying to get deterministic
> finalization built in on top of the .NET model by adding reference
> counting. That would be the best of both worlds.

SWEET!  Chris is da' man.  It does seem that something of that nature is
missing.

I'm glad that I, at least, found some validation of my concerns regarding
these issues.  It's clear that there needs to be the deterministic
destruction idiom available for use as well.  And, IMHO, the dispose
pattern is a clunky solution.

   -Trey

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to