Browse thread
OO design
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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.