On 13 May 2014 03:17, Walter Bright via Digitalmars-d <[email protected]> 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.
