Next in Review Queue: The New std.path

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Jul 15 08:05:47 PDT 2011


The thing although Windows works with forward slashes some tools might
not work with forward slashes, so toNativePath could be useful there.

Then again for example GIT doesn't work with backward slashes (at
least .gitignore doesn't want to work with it). So maybe it should
have an optional parameter that chooses between Posix or Windows
paths..

Or we can just use string.replace("/", r"\"); But having it in
std.path would be more useful.


More information about the Digitalmars-d mailing list