GenerateWriter

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

Members

Manifest constants

GenerateWriter
enum GenerateWriter;
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(GenerateWriter!("foo", integerValue, "integerValue") ==
    "public static final @property void foo(typeof(integerValue) foo) " ~
    "@nogc nothrow @safe { this.foo = foo; }");
static assert(GenerateWriter!("foo", stringValue, "stringValue") ==
    "public static final @property void foo(typeof(stringValue) foo) " ~
    "@nogc nothrow @safe { this.foo = foo; }");
static assert(GenerateWriter!("foo", intArrayValue, "intArrayValue") ==
    "public static final @property void foo(typeof(intArrayValue) foo) " ~
    "nothrow @safe { this.foo = foo.dup; }");

Meta