Creating a List Type Using std.variant.algebraic

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


On Sunday, 27 April 2014 at 20:38:37 UTC, Meta wrote:
> Is it necessary to use This[]? I tried changing it to This* and 
> it blew up on me.

I should specify. This did not work:

alias T = Algebraic!(int, This*);

void main() {
	auto l = T(1, new T(2, new T(3, null)));
}


More information about the Digitalmars-d-learn mailing list