<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Jul 30, 2008 at 4:36 AM, llee <span dir="ltr"><<a href="mailto:llee@goucher.edu">llee@goucher.edu</a>></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>
> > Param! (Param) composite = new Param! (Param) ();<br>
><br>
> You seem to have forgotten something:<br>
><br>
> ... = new Param!( Param!(MISSING) );<br>
<br>
</div></div>That's what I need to know. I don'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> template SetOfSets(T) { alias Set!(Set!(T)) SetOfSets; }<br>
<br>This is one place where D could be nicer. I think extending the template shortcut syntax to aliases would be nice:<br><br> 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>