const debacle
Davidson Corry
davidsoncorry at comcasst.net
Thu Mar 27 16:47:27 PDT 2008
Davidson Corry wrote:
> asif const(T)
> or perhaps expressed even better
> locally const(T)
Gaah. I hate it when I say something, and then learn that I didn't know
what I was talking about. (By reading the Web page "Here a const, there
a const".)
I told you that I come from many years of C++. Well, I have been guilty
of C++-think. 'const' in D doesn't mean what it means in C/C++. What
I've been describing as "locally const" IS what D means by 'const'. What
I've been thinking of as "(globally) const", D has a better name for,
which is 'invariant'. And all of what I was asking for, D already gives me.
Which leaves what you folks were already talking about, to which I
contributed only confusion. My apologies.
<sigh> RTFM. Then re-RTFM. Then THINK about what you R in TFM. Then
UNDERSTAND TFM.
THEN speak. <sigh>
-- Dai
More information about the Digitalmars-d
mailing list