More radical ideas about gc and reference counting

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun May 11 14:00:24 PDT 2014


On 5/11/2014 1:45 PM, Rainer Schuetze wrote:
>
>
> On 11.05.2014 22:33, Walter Bright wrote:
>>
>>>> The Boehm collector cannot move objects around, the D one can.
>>> Oh it can? Really?
>>
>> Yes. D, for example, requires that objects not be self-referential for
>> this reason.
>
> I don't think the GC would have problems with fixing up internal pointers to the
> object itself. self-referential is prohibited to allow moving structures by
> memcpy, e.g. as return value.

The earlier D design did not have postblit, and so there was no fixing up of 
internal pointers.


More information about the Digitalmars-d mailing list