The OpenD Programming Language

TickDuration.opBinary

Adds or subtracts two TickDurations.

The legal types of arithmetic for TickDuration using this operator are

TickDuration+TickDuration-->TickDuration
TickDuration-TickDuration-->TickDuration
  1. TickDuration opBinary(TickDuration rhs)
    struct TickDuration
    deprecated @safe const pure nothrow @nogc
    opBinary
    (
    string op
    )
    if (
    op == "+" ||
    op == "-"
    )
  2. TickDuration opBinary(T value)
  3. TickDuration opBinary(T value)

Parameters

rhs TickDuration

The TickDuration to add to or subtract from this TickDuration.

Meta