<div dir="ltr">On 29 May 2013 00:01, David Nadlinger <span dir="ltr"><<a href="mailto:see@klickverbot.at" target="_blank">see@klickverbot.at</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tuesday, 28 May 2013 at 13:56:03 UTC, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yep, I can imagine it would work really well, if the front-end implemented<br>
the logic to factor out redundant inc/dec ref's.<br>
</blockquote>
<br></div>
It isn't the best idea to do this sort of optimizations (entirely) in the front-end, because you really want to be able to aggressively optimize away such redundant operations after inlining at what previously were function boundaries.<br>

<br>
But then again, if you use AST-based inlining like DMD does, it might just work… ;)</blockquote><div><br></div><div style>Can you comment on the complexity of implementing this sort of garbage collection? (not really garbage collection, but serves the same purpose)</div>
</div></div></div>