Pure Contract bug?

Timon Gehr timon.gehr at gmx.ch
Sat Feb 4 17:20:33 PST 2012


On 02/05/2012 01:20 AM, Era Scarecrow wrote:
>>
>> the signature I meant looks like
>>
>> pure int squaredPlus(int)immutable;
>
> Which then the only way you could call it, was if the object itself was
> immutable, which is definitely safe (I think). Hmmm...

Alternatively you can use pure int squaredPlus(int)const;, of course.


More information about the Digitalmars-d-learn mailing list