RCString.opOpAssign

  1. typeof(this) opOpAssign(typeof(this) rhs)
    struct RCString
    typeof(this)
    opOpAssign
    (
    string op
    )
    (
    typeof(this) rhs
    )
    if (
    op == "~"
    )
  2. typeof(this) opOpAssign(string rhs)
  3. typeof(this) opOpAssign(C c)
  4. typeof(this) opOpAssign(R r)

Examples

auto r1 = RCString("abc");
r1 ~= RCString("def");
assert(r1.equal("abcdef"));
auto r1 = RCString("abc");
r1 ~= "def";
assert(r1.equal("abcdef"));

Meta