https://issues.dlang.org/show_bug.cgi?id=13996
Martin Nowak <c...@dawg.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |c...@dawg.eu --- Comment #1 from Martin Nowak <c...@dawg.eu> --- You forgot suffix argument :). It's missing for ages, we just needed it for dub https://github.com/D-Programming-Language/dub/pull/497#issuecomment-72763326. The python implementation takes a reasonable approach, generate random names and try to exclusively open the file. https://github.com/python/cpython/blob/1196330dedbe741f8a0c418abcd2956fad29837f/Lib/tempfile.py#L191 The new function could be called namedTempFile. It's still useful to have a tempFile function that directly unlink the file. --