Template Methods
Returns a tuple of each method in the form of the Quirks
template
template Methods(alias aggregate)
;
Contained Functions
Name | Description |
---|---|
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);
}