+1 vote
in D Programming by
Why Not Use Readonly To Mean Read Only View?

1 Answer

0 votes
by

Readonly has a well established meaning in software to mean ROM, or Read Only Memory that can never be changed. For computers with hardware protection for memory pages, readonly also means that the memory contents cannot be altered. Using readonly in D to mean a read only view of memory that could be altered by another alias or thread runs counter to this.

Related questions

0 votes
asked Mar 5, 2021 in D Programming by SakshiSharma
+1 vote
asked Mar 5, 2021 in D Programming by SakshiSharma
...