Is it possible to store different generic types in ex. an
Erik van Velzen via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Nov 12 07:30:51 PST 2016
On Wednesday, 9 November 2016 at 15:44:59 UTC, Is it possible to
store different generic types? wrote:
>
> Foo[] foos; // Where Foo of course should allow any generic
> version of Foo
>
You can use an array of std.variant
More information about the Digitalmars-d-learn
mailing list