Today's episode of “something I didn't know about C++”: class whynot { friend void; };
What part of the spec are those uses of `const` and `restrict` explained in?
-
-
I've been too lazy to look it up, but http://www.open-std.org/jtc1/sc22/wg14/www/C99RationaleV5.10.pdf …pic.twitter.com/yaCGsZz7eo
-
OK, so the `const` means that *within the function* the pointer won't be modified to point to another array. It doesn't mean that it will always be called with the same array given as an input, IIUC.
-
In other words, this syntax for `const` and `restrict` means the same thing as `const` and `restrict` normally mean for pointers, but it allows you to use them with the array syntax (presumably primarily so you can use the truly new meaning of `static`).
-
Right! My bad.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
