<p dir="ltr">I tried that. It doesn't work.<br>
It's also not really what I want.</p>
<div class="gmail_quote">On 31/12/2014 9:35 pm, "Jacob Carlborg via Digitalmars-d" <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2014-12-30 07:01, Manu via Digitalmars-d wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've got this thing going on where I want to be able to attribute an<br>
alias, but that doesn't seem to work:<br>
<br>
@("hello")<br>
struct(X) S<br>
{<br>
   X x;<br>
}<br>
<br>
@("world")<br>
alias A = S!int;<br>
<br>
Test!A;<br>
<br>
template(T) Test<br>
{<br>
   // at this point, if T is some S, then the "hello" attribute is<br>
present, as expected<br>
   // if T is A, "world" is lost<br>
}<br>
<br>
I guess the reason is that A is not really a thing; it is translated<br>
to S!int when being given to T?<br>
Is that the point where "world" is lost?<br>
</blockquote>
<br>
What if you make T an alias parameter, will that work?<br>
<br>
-- <br>
/Jacob Carlborg<br>
</blockquote></div>