On Friday, 30 June 2017 at 16:43:33 UTC, Stefan Koch wrote:
On Friday, 30 June 2017 at 16:38:45 UTC, bauss wrote:
Is there a way to retrieve the body of a function as a string?
Scenario.
I want to pass a function to a mixin template and just mixin
the body of the function.
Ex.
mixin templa
On Friday, 30 June 2017 at 16:38:45 UTC, bauss wrote:
Is there a way to retrieve the body of a function as a string?
Scenario.
I want to pass a function to a mixin template and just mixin
the body of the function.
Ex.
mixin template Foo(alias fun) {
void bar() {
mixin(getBodyOfF
Is there a way to retrieve the body of a function as a string?
Scenario.
I want to pass a function to a mixin template and just mixin the
body of the function.
Ex.
mixin template Foo(alias fun) {
void bar() {
mixin(getBodyOfFun(fun));
}
}
I'm aware that I can pass a string l