Move semantics for D

Jonathan M Davis jmdavisProg at gmx.com
Fri Jul 13 02:06:59 PDT 2012


On Friday, July 13, 2012 08:50:03 Benjamin Thaut wrote:
> Move semantics in C++0x are quite nice for optimization purposes.
> Thinking about it, it should be fairly easy to implement move semantics
> in D as structs don't have identity. Therefor a move constructor would
> not be required. You can already move value types for example within an
> array just by plain moving the data of the value around.

http://stackoverflow.com/questions/4200190/does-d-have-something-akin-to-c0xs-
move-semantics

http://stackoverflow.com/questions/6884996/questions-about-postblit-and-move-
semantics

- Jonathan M Davis


More information about the Digitalmars-d mailing list