[Issue 13996] Function for returning a temporary file with a randomly generated name where the name can be accessed

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Feb 3 16:23:31 PST 2015


https://issues.dlang.org/show_bug.cgi?id=13996

--- Comment #3 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
Drat. I managed to post by accident. In any case, tmpfile could easily be
replaced such that

auto file = File.tmpfile();

became

auto file = File.tempFile();
scope(exit) std.file.remove(file.name);

so IMHO tmpfile becomes redundant on top of being pretty useless. But it _does_
mean deprecating it if we're getting rid of it, so it might be better to just
keep it around rather than dealing with that.

--


More information about the Digitalmars-d-bugs mailing list