<div class="gmail_quote">On Thu, Aug 26, 2010 at 14:11, Stanislav Blinov <span dir="ltr">&lt;<a href="mailto:blinov@loniir.ru">blinov@loniir.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
 Sorry, I pressed the wrong button so the message was sent to your email. Reciting:<div class="im"><br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
Does that work for you?<br>
<br>
</div></blockquote><div><div></div><div class="h5">
Yes! Beautiful, thanks! That beats hell out of my clumsy templates :)<br></div></div></blockquote><div><br>Your templates are not clumsy, it&#39;s typically the way some other PL would process lists/arrays. I used to write a lot of these. But 6 months ago, CTFE got seven-leagues boots and right now it&#39;s much easier on the eye to use CT functions.<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="h5">
<br>
When I was on the way to my initial solutions I was under strong impression that T[N] func() won&#39;t work. Now I see that was because I didn&#39;t bother to fully understand how arrays are returned from functions. I got it now, so thanks a lot again!<br>
</div></div></blockquote><div><br>There used to be a time, maybe not 18 months ago where returning static arrays from functions was not possible, IIRC. Right now, I think you can use them with no problem. Maybe someone well-versed in optimization will tell us it&#39;s not a good idea, I don&#39;t know.<br>
<br><br>Philippe<br> <br></div></div><br>