Creating a List Type Using std.variant.algebraic
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 27 13:28:27 PDT 2014
Meta:
> alias List = Algebraic!(typeof(null), Cons!(int, This));
Also your Cons seems a value type, like Algebraic itself. You
have to avoid creating an infinite-size algebraic value.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list