1.

What Principles Drove The D Const Design?

Answer»
  1. It will be mathematically sound. That MEANS there are no legal escapes from it.
  2. Any TYPE can be wrapped in a struct and the RESULTING struct can still exhibit the same const BEHAVIOR - in other words, no magic behavior for certain TYPES.
  3. Const behavior will be transitive.
  4. Const behavior for type T will be equivalent for all types T.



Discussion

No Comment Found