Sign.opIndex

Gets the text at the given line.

  1. string[4] opIndex()
  2. string opIndex(size_t index)
    class Sign
    @safe
    string
    opIndex
    (
    size_t index
    )

Parameters

index size_t

the line of the sign

Return Value

Type: string

a string with the text that has been written at the given line

Throws

RangeError if index is not on the range 0..4

Examples

d("First line of sign is: ", sign[Sign.FIRST_LINE]);

Meta