Is there any trait or Phobos function for transforming a function/delegate/lambda/whatever's body into a string suitable for `mixin(...)`? For example:

__traits(getBody, (int a, int b) => a + b); // returns "(int a, int b) => a + b" // or maybe just "a + b"

If not, is there any way to do this _without_ using strings? They are very inconvenient and could hide errors.


Reply via email to