1.

How Does Const Differ In C++?

Answer»

C++ has a const system that is closer to D's than any other language, but it still has HUGE DIFFERENCES:

  1. const is not transitive
  2. no immutables
  3. const objects can have mutable members
  4. const can be legally cast AWAY and the DATA MODIFIED
  5. const T and T are not always distinct types

C++ has a const system that is closer to D's than any other language, but it still has huge differences:



Discussion

No Comment Found