Proposal: Automatic Resource Management

Jeremy Manson jeremy.manson at
Sun Mar 8 10:43:16 PDT 2009

I was going to write this, but now I won't.  People will just have to
write to this interface.

It is worth pointing out that this topic came up (repeatedly) when
Josh was writing this proposal, which is why he did allow for the
possibility that the try guard be changed to accept expressions.


On Sun, Mar 8, 2009 at 3:19 AM, Stefan Schulz <schulz at> wrote:
> Just a thought (although I contradict one of my earlier posts): If Locks
> seem important for being handled by ARM (and I think they are), why not
> allow a seperate Interface for ARM that results in the appropriate code?
> Maybe a reduced Lock-Interface (e.g. ManagableLock) only containing the
> methods lock() and unlock().
> The main argument to me for treating Locks additionally to closable
> resources is to give a more complete resource management construct to
> developers that prevents the (to be expected) ugly solution as being
> discussed on this list.
> Stefan

More information about the coin-dev mailing list