Patrick Beard wrote:
> As far as knowing whether a file has been closed, it should be safe to
> call Close() multiple times, that is to say, the method should be
> "idempotent."
Yes, but as I said, IMO it would be nice to be able to detect "leaky"
classes that don't call close, and idempotent close does nothing to help
that.
--
Matthew Tuck: Software Developer & All-Round Nice Guy
My experience is that in general, if there's jobs programming
in it, it's not worth programming in.
- Closing streams in the destructor Navin Gupta
- Re: Closing streams in the destructor Brendan Eich
- Re: Closing streams in the destructor Navin Gupta
- Re: Closing streams in the destructor Alec Flett
- Re: Closing streams in the destructor Adam D. Moss
- Re: Closing streams in the destructor Patrick Beard
- Re: Closing streams in the destructor Matthew Tuck
- Re: Closing streams in the destructor Patrick Beard
- Re: Closing streams in the destructor Simon Fraser
- Re: Closing streams in the destructor Navin Gupta
- Matthew Tuck
