Copy elision by spec

deadalnix deadalnix at gmail.com
Mon Nov 4 11:55:48 PST 2013


On Monday, 4 November 2013 at 11:23:33 UTC, Lars T. Kyllingstad 
wrote:
> I know, and I agree.  The question is whether this is a move 
> *by specification*, i.e. whether the language makes a guarantee 
> that return values are always moved under certain 
> circumstances.  If so, this should be mentioned in the spec, 
> along with a detailed description of said circumstances.
>

In D, structs are movable by spec. It means internal pointer and 
other stuff like that are incorrect by spec.


More information about the Digitalmars-d mailing list