dsNew

Allocates T in the data segment, this will just create T normally for value types.

  1. T dsNew(size_t length)
  2. T dsNew()
    static @nogc
    T
    dsNew
    (
    T
    uint R0 = __LINE__
    string R1 = __TIMESTAMP__
    string R2 = __FILE_FULL_PATH__
    string R3 = __FUNCTION__
    )
    ()

Parameters

T

The type to be allocated.

Return Value

Type: T

A new instance of T allocated in the data segment.

Examples

B a = dsNew!B;
writeln(a); // tern.main.B

Meta