Dynamic Ctors ?

Voitech via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 8 07:30:08 PST 2016


On Monday, 8 February 2016 at 15:09:30 UTC, Kagamin wrote:
> http://dpaste.dzfl.pl/1f25ac34c1ee
> You need Tuple, not Algebraic. Algebraic stores only one value 
> of one type from a set, like Variant.

Thank you for answering. You right if i would want to store all 
types of T.. in an Inner instance. But my conception was bad from 
the beginning. I want to store only one type of value in Inner 
instance. I just wanted to create generic constructor for each of 
Type which is invalid, cause instance holds value of single type 
that's why it is not parametrized by itself.


More information about the Digitalmars-d-learn mailing list