What guarantees does D 'const' provide, compared to C++?

Mehrdad wfunction at hotmail.com
Thu Aug 16 18:19:35 PDT 2012


On Friday, 17 August 2012 at 00:51:55 UTC, Torarin wrote:
>
> The C++ standard, section 7.1.6.1:
>
> Except that any class member declared mutable (7.1.1) can be 
> modified, any attempt to modify a const object during its 
> lifetime (3.8) results in undefined behavior.
>
> Torarin


+1 thanks for taking the time to look it up. :)


More information about the Digitalmars-d mailing list