Function.setBody

Set the function body.

struct Function
setBody
(
string value
)

Examples

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

Meta