[Issue 16595] thisExePath resolves symlinks but this isn't mentioned in docs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Dec 17 05:01:41 PST 2016


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

--- Comment #9 from Jacob Carlborg <doob at me.com> ---
I think we're misunderstanding each other. A potential thisExePathUnresolved
function, you obliviously don't that to resolve symbolic links, correct? Do you
want that to return the absolute path? I.e. remove any extra "/", "." or "..".

I think that Phobos, as a standard library, should provide a cross-platform
consistent behavior for the most common use cases. In my opinion thisExePath is
a niche function to begin with, that is most likely not used very often. In
general it also more likely that one would _not_ have a symbolic link.

I think with all these cases combined, if that does not fit your use case I
think you would have to implement that functionality yourself and not it should
not be added to Phobos. The implementation is also very small and already
available, you don't need to figure out how to do it on all platforms.

Andrei, what do you think?

--


More information about the Digitalmars-d-bugs mailing list