Y
Hacker News
new
|
ask
|
show
|
jobs
by
innocenat
1973 days ago
Pointer arithmetic would surely make all value mutable. Or even simple array access.
2 comments
teddyh
1972 days ago
Yes, but the compiler should
know
if there is any pointer arithmetic present in the code, and whether any such pointer arithmetic could, possibly, result in a pointer pointing to the const data.
link
makapuf
1973 days ago
If you point to writable memory (Not all programs reside in ram.)
link