immutable storage class?

Jesse Phillips jessekphillips at gmail.com
Fri Mar 6 21:58:32 PST 2009


On Fri, 06 Mar 2009 08:58:04 -0500, Sergey Kovrov wrote:

> I cannot find any information about immutable keyword. I presume it is a
> storage class and should be described in "Declarations" manual page, but
> it is not. On the other hand it is mentioned in changelog and some
> manual pages. Is it an alias for invariant or const, or something
> completely different?
> 
> -- serg.

I'm not sure what is the real reason for it's existence, but it seems 
many people prefer the term immutable over invariant. So I guessed that 
Walter is planning on changing the name to immutable. He might keep both 
in there, but I really don't think that is a good idea.


More information about the Digitalmars-d-learn mailing list