GenerateReader

Undocumented in source.
template GenerateReader (
string name
alias field
) {}

Members

Manifest constants

GenerateReader
enum GenerateReader;
Undocumented in source.

Static functions

helper
enum helper()
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

int integerValue;
string stringValue;
int[] intArrayValue;

static assert(GenerateReader!("foo", integerValue) ==
    "public static final @property auto foo() " ~
    "@nogc nothrow @safe { return this.foo; }");
static assert(GenerateReader!("foo", stringValue) ==
    "public static final @property auto foo() " ~
    "@nogc nothrow @safe { return this.foo; }");
static assert(GenerateReader!("foo", intArrayValue) ==
    "public static final @property auto foo() inout nothrow @safe "
  ~ "{ return typeof(this.foo).init ~ this.foo; }");

Meta