alias A = B; syntax

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Tue Oct 16 14:36:01 PDT 2012


On Tue, 16 Oct 2012 20:45:34 +0200
"so" <so at so.so> wrote:

> On Tuesday, 16 October 2012 at 17:05:14 UTC, kenji hara wrote:
> 
> > The result of my challenging.
> > https://github.com/D-Programming-Language/dmd/pull/1187
> >
> > Kenji Hara
> 
> As far as i remember, Andrei said that it was planned and the 
> syntax will support templates too (like C++0x template alias). 
> So, this might not be enough.
> 
> Something like:
> alias vec(T) = vector!(T, allocator);

I think we can save that as a separate enhancement, especially since
Walter has said he wants to do the same thing for variables, too (or
at least enum manifest constants, anyway):

http://forum.dlang.org/thread/jojish$2cm2$1@digitalmars.com?page=7#post-jok8e6:24k13:241:40digitalmars.com




More information about the Digitalmars-d mailing list