any news on const/invariant?

Walter Bright newshound1 at digitalmars.com
Mon Nov 26 14:11:25 PST 2007


Jason House wrote:
> Walter Bright Wrote:
> 
>> Denton Cockburn wrote:
>>> Any update on the status of the const/invariant changes?
>> Yes, it's about done.
> 
> How about documentation of how const will work.  Is this essentially
> what was originally posted in the "const is broken" thread?  Or are
> there new surprises in store for us?

I don't remember the details of that, but the nutshell version is:

1) no more final for variables
2) no more 'head const' or 'tail const', it's all just 'const'
3) ditto (2) for invariant

It should be working as one would intuitively expect it to.



More information about the Digitalmars-d mailing list