I am trying to overload `opOpAssign` for my class. The code compiles, but it does not seem to be working.

```d
// binary operations have already been implemented for Value
// i need +=, -=, *=, /=
auto opOpAssign(string op)(Value rhs)
{
    mixin("return this" ~ op ~ "rhs;");
}

auto opOpAssign(string op)(in ElementType rhs)
{
    mixin("return this" ~ op ~ "rhs;");
}
```

What am I missing here? Full project code can be found [here](https://github.com/rillki/tiny-grad).

Reply via email to