Is it possible to store properties via opDispatch using tuples?

Gary Willoughby dev at nomad.so
Thu Jan 16 14:02:07 PST 2014


On Thursday, 16 January 2014 at 21:48:14 UTC, bearophile wrote:
> Gary Willoughby:
>
>> What i would like to achieve is to dynamically assign and 
>> retrieve properties without declaring them first.
>
> Do you mean something like this?
> http://rosettacode.org/wiki/Add_a_variable_to_a_class_instance_at_runtime#D
>
> Bye,
> bearophile

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


More information about the Digitalmars-d-learn mailing list