Struct beeing moved around

Benjamin Thaut code at benjamin-thaut.de
Fri May 20 11:47:26 PDT 2011


Am 20.05.2011 20:33, schrieb KennyTM~:
> On May 21, 11 01:28, Michel Fortin wrote:
>> Postblit is a post-copy constructor, not a post-move one. There is no
>> such thing as a post-move constructor in D: structs are assumed to be
>> movable.
>>
>
> The assumption is better written in the spec. There's no single mention
> of the word "move" in struct.html.
>
The D spec says at the very top of the struct.html

"A struct is defined to not have an identity; that is, the 
implementation is free to make bit copies of the struct as convenient."

-- 
Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list