The OpenD Programming Language

SmallArray.opIndex

Returns an scope common array.

The property is used as common array representation self alias.

The alias helps with [], [i], [i .. j], ==, and != operations and implicit conversion to strings.

  1. inout(T)[] opIndex()
    struct SmallArray
    @safe pure @nogc inout @trusted scope return
    inout(T)[]
    opIndex
    ()
  2. inout(T) opIndex(size_t index)

Meta