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
exception safety / RAII ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-03-07 (01:32)
From: Stefan Monnier <monnier@i...>
Subject: Re: exception safety / RAII ?
> In most cases you probably won't care when a file is closed after writing to
> it, so you can just rely on the garbage collector.

Very bad practice in (e.g.) an NFS world where the filesystem makes no
guarantee about file writes until you actually close the file.