[Issue 5097] Safer unions with @tagged
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 21 20:28:30 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5097
--- Comment #3 from Andrei Alexandrescu <andrei at metalanguage.com> 2010-10-21 20:27:47 PDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > This is not the same as std.variant.Algebraic because:
> > - There is no way for the programmer to read the tag, because the tag and its
> > tests vanish in release mode.
>
> This does not justify a new language feature. Anyone could define a private tag
> that doesn't vanish in release mode.
Oops, I meant "does".
Andrei
--
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