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 final @property auto foo() " ~
    "inout @nogc nothrow pure @safe { return this.foo; }");
static assert(GenerateReader!("foo", stringValue) ==
    "public final @property auto foo() " ~
    "inout @nogc nothrow pure @safe { return this.foo; }");
static assert(GenerateReader!("foo", intArrayValue) ==
    "public final @property auto foo() nothrow pure @safe "
  ~ "{ return [] ~ this.foo; }");

Meta