immutable isn't tied to lifetime semantics.It only says that this memory will never be modified by anyone during its lifetime.
Anyway, the real problem is with const. Both mutable and immutable become it automatically.
rikki cattermole via Digitalmars-d-learn Sun, 10 Apr 2022 16:21:29 -0700
immutable isn't tied to lifetime semantics.It only says that this memory will never be modified by anyone during its lifetime.
Anyway, the real problem is with const. Both mutable and immutable become it automatically.