The OpenD Programming Language

Int128.opBinaryRight

Support binary arithmetic operators + - * / % & | ^ << >> >>>

  1. Int128 opBinaryRight(Int op2)
  2. Int128 opBinaryRight(IntLike op2)
    struct Int128
    const
    opBinaryRight
    (
    string op
    IntLike
    )
    (
    auto ref IntLike op2
    )
    if (
    (
    op == "+" ||
    op == "-"
    ||
    op == "*"
    ||
    op == "/"
    ||
    op == "%"
    ||
    op == "&"
    ||
    op == "|"
    ||
    op == "^"
    )
    &&
    is(IntLike : long)
    &&
    !__traits(isIntegral, IntLike)
    )

Parameters

op

one of the arithmetic binary operators

op2 IntLike

second operand

Return Value

Type: Int128

value after the operation is applied

Meta