Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
innocenat
5y ago
0 comments
Share
Pointer arithmetic would surely make all value mutable. Or even simple array access.
0 comments
default
newest
oldest
teddyh
5y 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.
makapuf
5y ago
If you point to writable memory (Not all programs reside in ram.)
j
/
k
navigate · click thread line to collapse