Creating a List Type Using std.variant.algebraic

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


On Sunday, 27 April 2014 at 20:22:12 UTC, bearophile wrote:
> Meta:
>
>> I'm trying to create a basic List type using Algebraic, but 
>> the compiler keeps complaining about recursive aliasing.
>
> As stated in its docs, Algebraic is not yet finished and good 
> for recursive data structures. But here I have put an usage 
> example of that kind:
>
> http://rosettacode.org/wiki/Flatten_a_list#With_an_Algebraic_Data_Type
>
> Bye,
> bearophile

Is it necessary to use This[]? I tried changing it to This* and 
it blew up on me.


More information about the Digitalmars-d-learn mailing list