C++ to D - recursion with std.variant

Dennis Ritchie via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 5 13:03:22 PDT 2015


On Sunday, 5 April 2015 at 09:48:01 UTC, thedeemon wrote:
> On Friday, 3 April 2015 at 16:46:08 UTC, Dennis Ritchie wrote:
>> Hi,
>> Is it possible to write on D recursion using std.variant?
>
> Using Algebraic from std.variant and some additional templates:
> http://dpaste.dzfl.pl/65afd3a7ce52
>
> (taken from this thread:
> http://forum.dlang.org/thread/yidovyrczgdiveqbaljw@forum.dlang.org?page=1
> )

Thanks.


More information about the Digitalmars-d-learn mailing list