Meaning of invariant

Tyro[a.c.edwards] no at spam.com
Sat Feb 9 16:06:17 PST 2008


Tyro[a.c.edwards] さんは書きました:
> Edward Diener さんは書きました:
>> I could not find any explanation for the keyword 'invariant' in the 
>> PDF doc. Is it the equivalent of the C++ 'const' in at least some of 
>> the latter's usages ?
>>
>> The only explanation for it existed as part of Contract Programming, 
>> but it seems to be used otherwise also.
> 
> http://www.digitalmars.com/d/2.0/const3.html

If I recall correctly invarinats were not introduced until 2.0 so you 
won't find int in 1.0 documentation or usage.

Regards,
Andrew



More information about the Digitalmars-d mailing list