get from tuple by type

Charles Cooper via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 15 16:50:26 PDT 2015


http://dlang.org/phobos/std_variant.html#.Algebraic
Thanks! This is fascinating, really a breath of fresh air coming 
from the C++ way of doing things.

On Sunday, 15 March 2015 at 23:31:59 UTC, bearophile wrote:
> If you are experiencing those problems it's probably the way 
> D/Phobos to tell you to not use basic tuples for your purpose. 
> Use tuples with named fields (or even structs).
> Take also a look at Algebraic in std.variant.
>
> Bye,
> bearophile



More information about the Digitalmars-d-learn mailing list