The OpenD Programming Language

Int128.opBinaryRight

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

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

Parameters

op

one of the arithmetic binary operators

op2 Int

second operand

Return Value

Type: Int128

value after the operation is applied

Meta