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
OO design
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-05-10 (19:01)
From: Shawn <shawnw@s...>
Subject: Re: [Caml-list] Re: OO design
Till Varoquaux wrote:
> One rather standard way to preserve atomicity of open/close operation
> is to use with... commands:

Why are you top-posting?

Anyways, doing just that is what I usually do, but because it's 
simpler/shorter to just call a function than rewrite the file 
opening/closing code every time I need I/O, not because I worry about 
forgetting to close the file when I'm done.