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

Chris Cain clcain at uncg.edu
Thu Aug 16 18:52:38 PDT 2012


On Friday, 17 August 2012 at 01:45:27 UTC, Mehrdad wrote:
> He was clearly _not_ talking about modifying the pointer.
> He said you cannot alter the "elements pointed TO".
>
>
> Given that, I have no idea how that is supposed to be saying 
> "you can't modify the const _view_". He's clearly talking about 
> the target of the pointer, not the pointer itself.

I'll let Mr. Davis confirm which he was talking about. The only 
thing that's clear is that our understandings of his point differ.


More information about the Digitalmars-d mailing list