Version française
Home     About     Download     Resources     Contact us    
Browse thread
[OSR] OCaml Standard Recommandation Process
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] [OSR] OCaml Standard Recommandation Process
On Monday 28 January 2008 16:51:17 Olivier Andrieu wrote:
> It's basically the same. But with "use" (or "using" in C#), you don't
> have to write the "with_open_in" wrapper in the first place because
> the finalizing function is implicit, it's the method called "Dispose".

Exactly.

> Using this scheme with OCaml would mean that any resource-using
> datatype has to be an object (not really the case right now).

Well, anything that wanted to exploit this would need to be an object. We 
could provide a completely new interface and also maintain backwards 
compatibility.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e