On Thursday, 16 January 2014 at 22:31:01 UTC, bearophile wrote:
Gary Willoughby:

Yes exactly but i would like to preserve the types of differently typed properties so i can cast them back on retrieval.

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

Bye,
bearophile

I didn't think about variants but would that also need coercing into the correct type?

Reply via email to