Path.opBinaryRight

Concatenation operator for paths.

- Concatenation of Path with Path will return Path - Concatenation of Path with string will return Path - Concatenation of string with Path will return string

struct Path
pure nothrow
string
opBinaryRight
(
string op : "~"
)
(
string other
)

Examples

Test concatenation operators

import dshould;

(Path("a") ~ "b").should.equal(Path("a", "b"));
(Path("a") ~ Path("b")).should.equal(Path("a", "b"));

("a" ~ Path("b")).should.equal("a" ~ std.path.dirSeparator ~ "b");

Meta