<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<br>
</blockquote><div><br></div><div>What do you mean, 'mangle'? Using _ before the name?</div><div><br></div><div>It seems to me you can use the same name:</div><div><br></div><div>class A(T, bool condition)</div><div>
{}</div><div><br></div><div>template A(T)</div><div>{</div><div>  alias A!(T, true) A;</div><div>}</div><div><br></div><div>void main()</div><div>{</div><div>    A!(int) a;</div><div>} </div></div><br><div><br></div>