On Tuesday, 21 February 2012 at 14:53:06 UTC, Robert Rouse wrote:
> Using a mixin, is it possible to have it define a method based
> on a string passed into the mixin?
A simpler way:
mixin template MakeMethod(string name)
{
void _MakeMethod_method() { /* ... */ }
mixin("alias _MakeMethod_method " ~ name ~ ";");
}