Template Methods

Returns a tuple of each method in the form of the Quirks template

template Methods(alias aggregate) ;

Contained Functions

NameDescription
generateNames

Example

struct S {
    long id;
    int age;
    string name() {
        return "name";
    }
}

alias fields = Methods!S;

static foreach (method; fields) {
    pragma(msg, method.returnType);
    pragma(msg, method.name);
}