On 25 February 2014 17:48, w0rp <devw...@gmail.com> wrote:

> On Tuesday, 25 February 2014 at 05:01:30 UTC, Manu wrote:
>
>> 3. ref doesn't accept rvalues. Can't declare ref locals (pointers change
>> semantics).
>>
>
> 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).'
>

If you do work with vectors or matrices, you will encounter it every few
minutes :)

Reply via email to