declarations as template parameters
Daniel N via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 3 12:44:11 PDT 2015
On Monday, 31 August 2015 at 21:14:42 UTC, Meta wrote:
>
> This would go great with Algebraic.
>
> alias List(T) = Algebraic!(
> struct Cons { T data; This* next; },
> struct Nil {},
> );
Good example!
I thought of another interesting use for my lambda trick(rough
draft, but shows promise)...
http://dpaste.dzfl.pl/8b26f2ec133d
More information about the Digitalmars-d
mailing list