Function.withBody

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

struct Function
withBody
(
string value
)

Examples

pure int answer();
mixin(
    refract!(answer, "answer").withName("theAnswer")
    .withBody("{ return 42; }")
    .mixture);
static assert(theAnswer() == 42);

Meta