Creating a List Type Using std.variant.algebraic

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 27 13:45:46 PDT 2014


On Sunday, 27 April 2014 at 20:28:28 UTC, bearophile wrote:
> 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

Yes, it's hard to figure out Algebraic's particular kind of 
"magic".


More information about the Digitalmars-d-learn mailing list