On 2014-01-16 23:31, bearophile wrote:
A Variant needs to keep the type of the value you have stored in, look at the Variant documentation. (But the usual limitations of a ahead-of-time compiled statically typed language apply.)
A Varian won't work, since it only stores a TypeInfo, not the static type. But perhaps that's what you're saying.
-- /Jacob Carlborg