Function.setName

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

struct Function
immutable(Function)
setName
(
string value
)

Examples

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

Meta