DMD 1.005 release

Walter Bright newshound at digitalmars.com
Tue Feb 13 11:21:14 PST 2007


Tomas Lindquist Olsen wrote:
> Is there any chance we could have alias template parameters become more
> generic in 1.0006 ? together with stringof, the new mixins could become
> very powerful...
> 
> with much nicer syntax.
> 
> template Add(alias L, alias R)
> {
>         const Add = L.stringof ~ " + " ~ R.stringof;
> }
> 
> right now this template only works when the parameters are single symbols.
> would be nice be be able to do:
> 
> Add!(42,foo);
> Add!(foo+bar,foo-bar);

What you're asking for we've been calling "alias expressions". It'll get 
here, just not in the next version.



More information about the Digitalmars-d-announce mailing list