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

Mehrdad wfunction at hotmail.com
Thu Aug 16 18:45:25 PDT 2012


Also note that Jon __clearly__ said:

"you know that the elements aren't altered either anything which 
the elements point to".



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.


More information about the Digitalmars-d mailing list