Feature request: Path append operators for strings
TommiT
tommitissari at hotmail.com
Tue Jul 2 12:46:26 PDT 2013
How would you feel about adding the '/' binary operator and the
'/=' assignment operator for strings, wstrings and dstrings? The
operators would behave the same way as they do with
boost::filesystem::path objects:
http://www.boost.org/doc/libs/1_54_0/libs/filesystem/doc/reference.html#path-appends
In short (and omitting some details) code such as:
string s = "C:\\Users" / "John";
...would be the same as:
string s = "C:\\Users" ~ std.path.dirSeparator ~ "John";
More information about the Digitalmars-d
mailing list