What is Invariant Good For?

Sean Kelly sean at invisibleduck.org
Sun Aug 3 09:49:08 PDT 2008


== Quote from Walter Bright (newshound1 at digitalmars.com)'s article
> Manfred_Nowak wrote:
> > Walter Bright wrote:
> >
> >> I might as well have used [...]
> >
> > A problem is, that your article refers to "existing terminology
> > confusion"---then more of the same should be avoided.
> The thing is, nobody has actually been confused about the meaning of
> invariant as applied to data, as opposed to class invariants. In
> contrast, what 'const' means when applied to data has plenty of existing
> confusion.

I disagree.  The meaning of 'const' is quite clear in D 1.0.  At
least for me :p  And while I understand the redefinition of 'const'
in D 2.0, it's not intuitive given its use in D 1.0.


Sean



More information about the Digitalmars-d mailing list