About alias

Trass3r mrmocool at gmx.de
Tue Mar 31 04:43:51 PDT 2009


Sam Hu schrieb:
> I am confused again this time about the key word alias when I read below tutorial:
> http://www.dsource.org/projects/tutorials/wiki/MetaBinarySearch
> Let's say this one:
> template bSearch(alias Match, alias Fail, alias x, A...) {
>     const bSearch = bSearchAlg!(0,Match,Fail,x,A);
> }
> 
> what is the meaning of the 'alias ' before parm Match in the parms list,and what's the purpose?
> 

http://www.digitalmars.com/d/2.0/template.html#TemplateAliasParameter
Be aware that alias parameters are only available in D2.0.


More information about the Digitalmars-d-learn mailing list