rval->ref const(T), implicit conversions

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 19 10:30:26 PST 2016


On 01/19/2016 06:43 AM, bitwise wrote:
>
> Finally, this situation simply should not be this complicated. A ref
> param should accept an rvalue. @safety is a specific concern, and unless
> I'm annotating my code with @safe, I should be able to write it however
> I want(within reason).
>
> To quote a famous author: "Sometimes, an entire community can miss a
> point".
>
> This is one of those points.

It actually isn't.


More information about the Digitalmars-d mailing list