rvalues->ref args

Dmitry Olshansky via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 12 09:47:41 PDT 2014


08-Sep-2014 16:46, Manu via Digitalmars-d пишет:
> Please can we move on a solution to this problem?
> It's driving me insane. I can't take any more of this! >_<
>
> Walter invented a solution that was very popular at dconf2013. I don't
> recall any problems emerging in post-NG-discussions.
>
> Ideally, we would move forward on a design for 'scope', like the
> promising (imo) proposal that appeared recently. That would solve this
> problem, and also many other existing safety problems, and even
> influence solutions relating to other critical GC/performance problems.


IMO just legalese auto ref for normal functions and you are all set.
The semantics end up to be pretty much the same as c++ const & does (not 
duplicating the function, like current template-style auto ref).

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list