The OpenD Programming Language

BigInt.opOpAssign

Implements assignment operators of the form BigInt op= BigInt.

  1. BigInt opOpAssign(T y)
  2. BigInt opOpAssign(T y)
    struct BigInt
    pure nothrow @safe return scope
    opOpAssign
    (
    string op
    T
    )
    (
    T y
    )
    if (
    (
    op == "+" ||
    op == "-"
    ||
    op == "*"
    ||
    op == "|"
    ||
    op == "&"
    ||
    op == "^"
    ||
    op == "/"
    ||
    op == "%"
    )
    &&
    is(T : BigInt)
    )

Examples

auto x = BigInt("123");
auto y = BigInt("321");
x += y;
assert(x == BigInt("444"));

Meta