Talk:Enforced immutability
C const: a joke
The C const
is such a joke. <lang C>void some_func(const int const * const a)
{
((int*)a)[0]++;
}</lang>Not even a compiler warning! So much for "immutable".
The C const
is such a joke. <lang C>void some_func(const int const * const a)
{
((int*)a)[0]++;
}</lang>Not even a compiler warning! So much for "immutable".