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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 15 09:36:28 PDT 2010


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



--- Comment #2 from bearophile_hugs at eml.cc 2010-10-15 09:35:53 PDT ---
(In reply to comment #1)
> The simplest way to implement this is not using that union trick and store all
> data in a templated class like this:
> 
> class VariantStorage(T) {
>   T data;
> }

I don't see how a class may replace an union.

-- 
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