change mixins
Nick Sabalausky
a at a.a
Sun Feb 14 14:37:06 PST 2010
"Walter Bright" <newshound1 at digitalmars.com> wrote in message
news:hl9q47$2kjr$1 at digitalmars.com...
> Right now, mixins are defined and used as:
>
> template foo(T) { declarations... }
>
> mixin foo!(int) handle;
>
> The proposal is to switch it around:
>
> mixin template foo(T) { declarations... }
>
> foo!(int) handle;
>
> to follow the notion that mixin templates are very different from regular
> templates, and that should be reflected in their definition rather than
> use.
>
> What do you think?
I don't have an opinion on template mixins, as I've never really used them,
but I *definitely* want that for string mixins of both the
template-generated and ctfe-generated varieties.
More information about the Digitalmars-d
mailing list