<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Jul 30, 2008 at 4:36 AM, llee <span dir="ltr">&lt;<a href="mailto:llee@goucher.edu">llee@goucher.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Oliver Dathe Wrote:<br>
<br>
&gt; &gt; Param! (Param) composite = new Param! (Param) ();<br>
&gt;<br>
&gt; You seem to have forgotten something:<br>
&gt;<br>
&gt; ... = new Param!( Param!(MISSING) );<br>
<br>
</div></div>That&#39;s what I need to know. I don&#39;t know what to put there to allow composite to be an array of arbitrary Params.<br>
</blockquote></div><br>Since the thing you end up with is a template still, you have to define a new template that defines the alias you want:<br><br>&nbsp; template SetOfSets(T) {&nbsp; alias Set!(Set!(T)) SetOfSets; }<br>
<br>This is one place where D could be nicer.&nbsp;&nbsp; I think extending the template shortcut syntax to aliases would be nice:<br><br>&nbsp;&nbsp; alias(T) Set!(Set!(T)) SetOfSets!(T);<br><br>It works for classes, structs and functions -- why not aliases too?<br>
<br>--bb<br><br><br><br></div>