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
    )
  3. size_t FIRST_LINE;
  4. size_t SECOND_LINE;
  5. size_t THIRD_LINE;
  6. size_t FOURTH_LINE;

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