Re:Noulith: A new programming language by the current Advent...
by int_19h on Wednesday December 14, 2022 @09:17PM
(#33994227)
It's a weird name for "readonly", not "immutable", as evidenced by this example:
There's no way to indicate true immutability in C++, unfortunately. The language does decree that any object (which in C++ parlance includes ints etc) with a const type cannot be mutated without triggering UB; but there's no way to declare a pointer or reference that can only point to such objects.
[ Parent
| on HN ]
There are no comments on this comment yet.