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.