I want to create my own Tuple type
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon Jan 11 20:58:59 UTC 2021
On Monday, 11 January 2021 at 20:52:25 UTC, Paul Backus wrote:
> All of what you're saying applies equally well to any struct
> type as it does to tuples.
Sure.
> It sounds like what you really want is for D *in general* to
> have head-const, for all types. So there's no reason to force
> it on tuples in particular. Just write your DIP for 'readonly',
> and if it's accepted, you can write `readonly(Tuple)` and get
> the result you want for free.
More like head-immutable, but yes.
More information about the Digitalmars-d-learn
mailing list