Const ref and rvalues again...

Jacob Carlborg doob at me.com
Fri Oct 19 00:53:29 PDT 2012


On 2012-10-19 04:48, Timon Gehr wrote:

> Then how to specify that the value of x cannot be escaped?
> I'm in favour of doing it the other way round and disallow escaping of
> ref parameters without an unsafe cast.

"scope" is supposed to be used to prevent this.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list