Function.withName

Return a new Function object with the name attribute set to value.

struct Function
withName
(
string value
)

Examples

pure @nogc int answer();
mixin(refract!(answer, "answer").withName("ultimateAnswer").mixture);
static assert(
    __traits(getAttributes, ultimateAnswer) ==
    __traits(getAttributes, answer));

Meta