const(FAQ)
serg kovrov
sergk at mailinator.com
Sat Mar 29 17:42:25 PDT 2008
Unknown W. Brackets wrote:
> Question:
>
> In my limited use of const thus far, I've found that "ignoring" or "just
> not using" it is not as possible as suggested. This is because the
> standard library imposes it.
>
> Or, in other words, if I ignore const and pretend it doesn't exist,
> Phobos will wake me up from my sleep whenever I use a function that,
> e.g. returns a string.
>
> I may be mistaken but this has been my experience. Not that I don't
> want to use const, necessarily.
>
> -[Unknown]
This is my experience so far as well. It's a shame, whenever I try D2 (I
usually do once in couple months, after seeing "most of the issues are
fixed now"), I always fall back to D1 after coule of hours figuring what
I have to do (cast/dup to and when) to achieve the task at hand.
Either it is me too dumb to grok it, or const system is not
intuitive(prodictive) yet. And productiveness (applied to me) is what I
look for in first place.
-- serg.
More information about the Digitalmars-d
mailing list