<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 7:09 PM, Andrej Mitrovic <span dir="ltr"><<a href="mailto:andrej.mitrovich@gmail.com" target="_blank">andrej.mitrovich@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 10/30/13, Philippe Sigaud <<a href="mailto:philippe.sigaud@gmail.com">philippe.sigaud@gmail.com</a>> wrote:<br>

> Does that syntax come with DMD 2.064? The (T) part, I mean.<br>
<br>
</div>Yes.<br></blockquote><div><br></div><div>Ah, that's cool! I've been waiting for that one for years.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Glad to see you here btw, do you have your own solution to the problem?<br></blockquote><div><br></div><div> As Benjamin, I used an internal stack. But that was years ago, let me see.</div><div><br></div><div><a href="https://github.com/PhilippeSigaud/dranges/blob/master/treerange.d#L185">https://github.com/PhilippeSigaud/dranges/blob/master/treerange.d#L185</a><br>
</div><div>or, for graphs:</div><div><a href="https://github.com/PhilippeSigaud/dranges/blob/master/graphrange.d#L25">https://github.com/PhilippeSigaud/dranges/blob/master/graphrange.d#L25</a><br></div><div><br></div><div>
Hmm, what I did there doesn't seem really lazy. I guess with today Phobos and DMD it's possible to have far less allocations.</div><div>(that code dates from 2009-2011)  </div></div></div></div>