[Issue 17488] Platform-inconsistent behavior from getTempDir()

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jun 11 15:57:54 PDT 2017


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

--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> ---
OK, I see a rationale in the pull request discussion
(https://github.com/dlang/phobos/pull/2150) (should've been in the commit
message, BTW):

> Android doesn't have a global temp directory and a couple tests fail 
> if the full path isn't used for the local directory, so I modified 
> tempDir() to use the full path.

The appropriate thing to do at that point would have been to fix the tests
instead of changing the behaviour of a public function. However, at this point
it's been three years since the change, so today the most sensible course is
probably to update the documentation (e.g. saying that the function returns the
current directory on failure would not be incorrect for both the old and new
behaviour).

--


More information about the Digitalmars-d-bugs mailing list