playing around with D

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Mar 5 09:11:03 PST 2007


"Carsten Scharfenberg" <cathune_public at web.de> wrote in message 
news:eshgp4$28kp$1 at digitalmars.com...
> template UseAppend( T )
> {
>    alias T   UseAppend;
> }
>
> What is UseAppend? Is it a named template (or a parametrised namespace) or 
> is it an alias to a real type? - In some way it is both..

UseAppend!(blah) is a template, and UseAppend!(blah).UseAppend is an alias 
to a real type.  It's just that there's a bit of syntactic sugar that makes 
it so that UseAppend!(blah) will implicitly refer to its .UseAppend member. 





More information about the Digitalmars-d mailing list