[Issue 5057] std.variant.Algebraic-aware GC

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 21 09:39:43 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5057



--- Comment #3 from bearophile_hugs at eml.cc 2010-10-21 09:38:59 PDT ---
A more general solution it to add to D an optional standard method, that may be
named "onScan" or something else, that the garbage collection calls if present,
and returns information that the GC uses at runtime to know what contents to
follow, etc.

So a user-defined union may define such onScan(), that reads the instance tag
to say the GC what to do.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list