const

Walter Bright newshound1 at digitalmars.com
Fri Mar 28 15:45:43 PDT 2008


Sean Kelly wrote:
> I've suggested "view" in the past, and there must be others.

"view" doesn't imply that one cannot change it through that view.

> Alternately,
> invent a word as you've said or come up with syntax that doesn't require
> a keyword to indicate this concept.  Truth be told however, my issue with
> the keywords in 2.0 has more to do with the change in meaning of "const"
> than with the words themselves.

const in D pretty much has the same meaning as C++ const as far as being 
a readonly view. The C++ meaning has a lot of momentum behind it.

> My initial response above was simply an
> expression of surprise that you felt the words all had identical meanings
> and yet we were using them to represent different things.

I meant they have identical english meanings.



More information about the Digitalmars-d mailing list