change mixins
Joel Anderson
ask at me.com
Mon Feb 15 01:04:09 PST 2010
On 2/14/2010 1:31 PM, Walter Bright wrote:
> 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 think this is a good idea. Particularly for string mixins.
More information about the Digitalmars-d
mailing list