Proposal: Automatic Resource Management

Mark Mahieu markmahieu at
Fri Mar 6 13:40:16 PST 2009

Hi, Bob.

On 6 Mar 2009, at 21:11, Bob Lee wrote:
>  Does anyone have real world
> examples where adapting an API to work with Disposable or Resource  
> would be
> so egregious as to justify the complexity inherent in the finally  
> modifier?
> Please limit examples to only those that you would actually want to  
> use with
> this language construct.

Well, that is what I've been doing.  Josh suggested an interface in  
the proposal and asked for people to look for real APIs that it  
wouldn't work with.  I pointed one out, Josh suggested another  
variation, I found another API.  Now you're suggesting yet another  
variation, which is fine but personally I'm not going to keep this  
little loop going ad infinitum, and that is why I suggested an  
alternative approach that may be worth investigating.

I suppose what I should really do is try to find the notes I made  
just over a year ago when I built my prototype of the earlier version  
of ARM, but off the top of my head I don't recall there being  
anything that would help here.  However, I do know that the 'finally'  
modifier definitely wasn't something I investigated.

> Bob



More information about the coin-dev mailing list