Function Function.withStatic

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

immutable(Function) withStatic (
  bool value
) immutable;

Example

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