Function.setStatic

Set the static_ attribute. Return this.

struct Function
setStatic
(
bool value
)

Examples

struct Question
{
  static int answer() { return 42; }
}
mixin(
  refract!(Question.answer, "Question.answer")
  .setStatic(false)
  .setBody("{ return Question.answer; }")
  .mixture);
static assert(answer() == 42);

Meta