Function.withStatic

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

struct Function
withStatic
(
bool value
)

Examples

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

Meta