Static attributes aren' immutable

bearophile bearophileHUGS at lycos.com
Fri Mar 5 10:50:09 PST 2010


div0:
>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.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list