Top-3 for 2.066

Manu turkeyman at gmail.com
Tue Feb 25 00:14:27 PST 2014


On 25 February 2014 17:48, w0rp <devw0rp at 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 :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140225/7fae06de/attachment-0001.html>


More information about the Digitalmars-d mailing list