More radical ideas about gc and reference counting

Manu via Digitalmars-d digitalmars-d at puremagic.com
Mon May 12 10:31:34 PDT 2014


On 13 May 2014 03:17, Walter Bright via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On 5/12/2014 4:35 AM, bearophile wrote:
>>
>> I suggested to add an optional method named "onGC" to unions that if
>> present is
>> called at run-time by the GC to know what's the real type of stored data,
>> to
>> make tracing more precise.
>
>
> Unions of pointers are so rare in actual code that treating them
> conservatively is not a big problem.

I find it fairly common.
I just searched through my code, and 7 out of 12 unions had pointers.


More information about the Digitalmars-d mailing list