I want to create my own Tuple type
Paul Backus
snarwin at gmail.com
Mon Jan 11 17:48:13 UTC 2021
On Monday, 11 January 2021 at 14:51:29 UTC, Ola Fosheim Grøstad
wrote:
> Basically, the tuple itself should be immutable, but not the
> objects being referenced. I guess I could run over the types
> and add const if they are not references?
Why? I'd say that an `immutable(Tuple)` should be immutable, and
a `Tuple` should be mutable, as is the case with literally every
other type in D.
More information about the Digitalmars-d-learn
mailing list