Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2008-01-28 (20:03)
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".


> 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 

Dr Jon D Harrop, Flying Frog Consultancy Ltd.