Is it possible to store properties via opDispatch using tuples?
    Gary Willoughby 
    dev at nomad.so
       
    Thu Jan 16 14:44:12 PST 2014
    
    
  
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?
    
    
More information about the Digitalmars-d-learn
mailing list