Y
Hacker News
new
|
ask
|
show
|
jobs
by
alcover
442 days ago
Hello, your doc about
const
says "The const qualifier is only retained for actual constant variables".
Then how do you express read-only pointers ? Like C `const int* ptr`
1 comments
lerno
442 days ago
If you pass them as parameters, then there are in/out/inout annotations to limit usage. But other than that, there isn't anything.
link