Const Tuples
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Apr 25 13:38:48 PDT 2014
Dicebot:
> For your objections to make sense tuple would need to be
> inroduced as completely new first class type system entity. As
> this will never happen,
I think first class tuples will happen in D, because the current
tuple situation is quite bad.
But this thread is not about built-in tuples, here we are
discussing about possible improvements to the Phobos
implementation of tuples.
A possible solution is an optional "@structural" attribute for
structs that gives structural typing to one struct (that will be
used as underlying implementation for library-defined tuples.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list