rvalue references

kenji hara k.hara.pg at gmail.com
Tue Apr 23 17:53:58 PDT 2013


2013/4/24 Manu <turkeyman at gmail.com>

> "The r-value being passed is assigned to a stack allocated temporary,
> which has a lifetime that is identical to any other local variable, ie, the
> lifetime of the function in which it appears."
> There, I defined it.
>

Good definition. If add more,
"getting address of "scope" parameter would be disallowed, at least in
@safe code, because it would be regarded as the escape of stack allocated
temporary."

Kenji Hara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130424/8658814c/attachment.html>


More information about the Digitalmars-d mailing list