invariant()

Stewart Gordon smjg_1998 at yahoo.com
Mon Apr 13 04:33:41 PDT 2009


Michel Fortin wrote:
<snip>
> D 2.020's changelog:
> 
> - immutable now is implemented.
> 
> 
> I though this meant that invariant was replaced by immutable as a type 
> modifier.

My first reaction was to look for documentation on what the keyword 
means and have no success.  And so I filed this....
http://d.puremagic.com/issues/show_bug.cgi?id=2572

> Apparently, it was not: invariant can still be used as a 
> synonym to immutable.
<snip>

If it meant that invariant had been removed, then that's what it 
would've said.

Stewart.



More information about the Digitalmars-d mailing list