D const design rationale

Sean Kelly sean at f4.ca
Sun Jun 24 09:03:37 PDT 2007


Kristian Kilpi wrote:
> 
> What if we drop out the 'invariant' keyword, and simply define that 
> aliasing
> is illegal (by default) and result in undefined behaviour?

That would pretty much invalidate the use of slicing, which is one of 
the most powerful features of the language.


Sean



More information about the Digitalmars-d mailing list