invariant

Stewart Gordon smjg_1998 at yahoo.com
Thu May 14 16:40:32 PDT 2009


bearophile wrote:
> Gide Nwawudu:
> 
>> Not sure the following code works for me.
>> invariant int x = 3;
>> void main() {
>> }
> 
> And now it's better to start using "immutable" instead of "invariant" that is probably deprecated.

Why would invariant be deprecated before there's any documentation on 
the meaning of immutable?

Stewart.


More information about the Digitalmars-d-learn mailing list