Static attributes aren' immutable
bearophileHUGS at lycos.com
Fri Mar 5 10:50:09 PST 2010
>putting it in Foo simply puts it in a namespace.<
So my (wrong) idea of immutable applied to a struct was that every thing in such namespace becomes immutable (I think this is a bit more intuitive).
What do you think of modifying D2 so in a situation like the one I've shown even static arguments become const/immutable? Can this cause troubles to other things?
Thank you to you and Lars T. Kyllingstad for the answers.
More information about the Digitalmars-d-learn