<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 8 April 2013 14:40, Simen Kjaeraas <span dir="ltr"><<a href="mailto:simen.kjaras@gmail.com" target="_blank">simen.kjaras@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 2013-04-08, 13:46, Iain Buclaw wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Only builtins are pure in the sense of 'C'.  Even functions considered<br>
PUREstrong by the frontend may update an internal state, so the rules just<br>
don't apply.  Except for maybe global functions...   In any case, the only<br>
benefit you can reap from 'D pure' functions are that they are more likely<br>
to be const-folded / inlined.<br>
</blockquote>
<br></div>
What?!?<br>
<br>
Please give an example of this. What sort of internal state are we<br>
talking about here?<span class="HOEnZb"><font color="#888888"></font></span></blockquote><div><br></div><div>It might be weakly pure. ;) <br></div></div><br>-- <br>Iain Buclaw<br><br>*(p < e ? p++ : p) = (c & 0x0f) + '0';
</div></div>