On Thursday, 13 December 2012 at 22:16:00 UTC, Philippe Sigaud wrote:
yeah, I tried that and got errors, I guess it works now. I still can't use the same class name as the alias though because I get a recursion error. It's not a huge deal but would be nicer to not have to mangle the class names to get it to work. The template stuff didn't work or I wasn't using
it correctly.


What do you mean, 'mangle'? Using _ before the name?

Yes.

It seems to me you can use the same name:

class A(T, bool condition)
{}

template A(T)
{
  alias A!(T, true) A;
}

void main()
{
    A!(int) a;
}

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

Reply via email to