The Many Faces of D - slides

Max Samukha spambox at d-coding.com
Tue Oct 5 01:02:32 PDT 2010


On 10/05/2010 02:42 AM, Walter Bright wrote:
> Max Samukha wrote:
>> He said "movable using memcpy()". He didn't say anything about
>> adjusting pointers. A moving GC should and will adjust pointers, but I
>> don't see how the memcpy() is relevant here.
>
> The moving GC would adjust the pointers, but the memcpy() means that
> other things would not need to be done, such as incrementing counters,
> all the things that non-trivial copy constructors do.

Now I see what you meant. Thanks for the explanation.


More information about the Digitalmars-d mailing list