Is there any real reason to use "const"?

rempas rempas at tutanota.com
Tue Jan 25 08:37:15 UTC 2022


On Monday, 24 January 2022 at 20:02:11 UTC, Walter Bright wrote:
> You can see this if you run an object file disassembler over 
> the compiler output, the immutable data goes in read-only 
> sections.

That's actually really amazing and IMO, it is how it should be. 
Real immutability makes sense rather than just the compiler not 
letting you mutate the value.


More information about the Digitalmars-d mailing list