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
bearophile via Digitalmars-d-learn Sun, 27 Apr 2014 13:30:27 -0700
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