Version française
Home     About     Download     Resources     Contact us    
Browse thread
exception safety / RAII ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michael Walter <michael.walter@g...>
Subject: Re: [Caml-list] Re: exception safety / RAII ?
On Mon, 7 Mar 2005 13:30:48 +0000, Jon Harrop <jon@jdh30.plus.com> wrote:
> > I'm not sure one should think of it as a "poor man's" solution or an
> > "alternative to GC". An indication to that could be the inclusion of
> > "using" into C#.
> 
> I don't know C#, but when would you want to deallocate a resource before all
> references to it have disappeared?

I never had such a desire.

> > Another indication could be the inelegance of
> > finalizers (or as well the trouble people seem to have using them -- I
> > wouldn't blame a wrong (read: C++) context as a cause for that).
> 
> How are finalisers inelegant? Apart from referencing an object from its own
> finaliser, what problems do people have?

Referencing other objects from a finalizer.

Michael