File needs to be closed on Windows but not on Posix, bug?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 5 13:44:00 PDT 2014


On Saturday, 5 July 2014 at 20:23:03 UTC, Joakim wrote:
> This seems like inconsistent behavior: should I file a bug?

This is because the operating systems do it differently; I think 
D is doing the right thing by being a pretty thin wrapper around 
that functionality.

If anything, I'd just say deleting an open file may not be 
permitted in the docs, implying that the user should always close 
it themselves before deleting it.


More information about the Digitalmars-d-learn mailing list