alias type reduction

Philippe Sigaud philippe.sigaud at gmail.com
Thu Dec 13 21:54:22 PST 2012


>
>
> Ok, I'll try again. when I was doing it I would get circular referencing
> but maybe I did something wrong...
>

Another possibility is to use `.A`: the (.) prefix means the symbol is
looked in the external scope, not inside the template. So the 2-params A is
found.

template A(T)
{
  alias .A!(T, true) A;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20121214/d81b3d0a/attachment.html>


More information about the Digitalmars-d-learn mailing list