mirror of https://github.com/adamdruppe/arsd.git
opBinaryRight
This commit is contained in:
parent
ea64ba0b1d
commit
01efe7b594
4
jsvar.d
4
jsvar.d
|
@ -648,6 +648,10 @@ struct var {
|
||||||
return _op!(n, this, op, T)(t);
|
return _op!(n, this, op, T)(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public var opBinaryRight(string op, T)(T s) {
|
||||||
|
return var(s).opBinary!op(this);
|
||||||
|
}
|
||||||
|
|
||||||
// this in foo
|
// this in foo
|
||||||
public var* opBinary(string op : "in", T)(T s) {
|
public var* opBinary(string op : "in", T)(T s) {
|
||||||
var rhs = var(s);
|
var rhs = var(s);
|
||||||
|
|
Loading…
Reference in New Issue