any news on const/invariant?

Sean Kelly sean at f4.ca
Wed Nov 28 16:27:07 PST 2007


Oskar Linde wrote:
> 
> I am to tired right now to reiterate my full thoughts on the keywords 
> (and I am sure you are all very thankful for that :) ), but it still 
> feels like the keywords are reversed:
> 
> invariant === constant
>     const === read only

I can't stand the use of "invariant" as a qualifier either, but what can 
you do.  May as well place it next to "foreach_reverse" on the shelf of 
horrifying semantics and move on.  As long as the semantics of const 
correctness improve then that will have to do.


Sean



More information about the Digitalmars-d mailing list