Const Tuples

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 25 05:42:32 PDT 2014


Dicebot:

> Well, wrong :) std.typecons.Tuple IS a struct - 
> https://github.com/D-Programming-Language/phobos/blob/master/std/typecons.d#L388

Nope, that's just an implementation detail. They are two quite 
different data structures. Example: slicing a tuple always has a 
meaning, while slicing a struct is in general meaningless.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list