Talk:Enforced immutability: Difference between revisions
Content added Content deleted
(C const: a joke) |
(No difference)
|
Revision as of 15:00, 25 June 2011
C const: a joke
The C const
is such a joke. <lang C>void some_func(const int const *a)
{
((int*)a)[0]++;
}</lang>Not even a compiler warning! So much for "immutable".