[dmd-beta] rvalue references

Jason House jason.james.house at gmail.com
Mon Apr 16 13:59:03 PDT 2012


On Apr 16, 2012, at 4:48 PM, "Jonathan M Davis" <jmdavisProg at gmx.com> wrote:

> [scope is] really only applicable to 
> reference types, so no copying would be occuring anyway. The issue is when you 
> have value types that you don't necessarily want to copy.

Scope isn't implemented for anything but delegates. If something is const and no references are escaped, then both a copy and pass by reference can serve the same purpose.



More information about the dmd-beta mailing list