I've got this thing going on where I want to be able to attribute an
alias, but that doesn't seem to work:

@("hello")
struct(X) S
{
  X x;
}

@("world")
alias A = S!int;

Test!A;

template(T) Test
{
  // at this point, if T is some S, then the "hello" attribute is
present, as expected
  // if T is A, "world" is lost
}

I guess the reason is that A is not really a thing; it is translated
to S!int when being given to T?
Is that the point where "world" is lost?

I'm not really sure how I can achieve what I want here... I need to
attribute particular instantiations of a template struct as shown.

Reply via email to