On Tuesday, 27 October 2015 at 08:41:24 UTC, Andrea Fontana wrote:
Template mixins can be used only for declaration.
Thanks for the quick reply! I didn't know that. Now the error
message makes sense.
Probably what you need is a (non-template) mixin.
Yes, it's gonna be a string mixin, or a
On Tuesday, 27 October 2015 at 07:56:51 UTC, SimonN wrote:
Hi,
I'd like to generate several very similar class methods with a
mixin template.
The mixin template shall take alias parameters, so that
different methods can
bind it to different fields. Reduced problem case:
Template mixins can
Hi,
I'd like to generate several very similar class methods with a
mixin template.
The mixin template shall take alias parameters, so that different
methods can
bind it to different fields. Reduced problem case:
class A {
int myField;
mixin template fieldSetter(alias what