<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 25 February 2014 17:48, w0rp <span dir="ltr"><<a href="mailto:devw0rp@gmail.com" target="_blank">devw0rp@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="">On Tuesday, 25 February 2014 at 05:01:30 UTC, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. ref doesn't accept rvalues. Can't declare ref locals (pointers change<br>
semantics).<br>
</blockquote>
<br></div>
It would be nice to see this problem solved in an acceptable way. I came across it again recently when writing source files generated from C++, and realised my best course of action at the moment is probably to write 'auto ref const(T)' in my generated code in place of 'ref const(T).'<br>

</blockquote></div><br></div><div class="gmail_extra">If you do work with vectors or matrices, you will encounter it every few minutes :)</div></div>