Invariants for methods

Walter Bright newshound2 at digitalmars.com
Thu Nov 18 22:42:44 PST 2010


bearophile wrote:
> C#4 designers seem to have found a way to implement "old" (Prestate Values)
> correctly enough, so can't D2 adopt a similar solution?

C#'s designers did not implement contract inheritance, which is a rather 
critical feature. Without inheritance, contracts are little more than just a 
list of asserts, and you cannot do the inheritance with a library feature.


More information about the Digitalmars-d mailing list