[Issue 1845] Variant and VariantN cannot handle structs of arbitrary size
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 16 14:23:43 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1845
andrei at metalanguage.com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|bugzilla at digitalmars.com |andrei at metalanguage.com
------- Comment #1 from andrei at metalanguage.com 2008-02-16 16:23 -------
The intent was to not inflict heap allocation on Variant's user unwittingly. If
large structs are to be stored in a Variant, they should be stored by pointer
and allocated in user code.
However, transparent pointer storage has its appeal too. I'd like to collect
more use cases before changing the implementation. All -- please advise.
--
More information about the Digitalmars-d-bugs
mailing list