What's the diff between immutable and const?

Ali Çehreli acehreli at yahoo.com
Thu Apr 22 10:15:21 PDT 2010


XCPPCoder wrote:
> What's the diff between immutable and const?

Very shortly: immutable means "never changes", "const" means "may not be 
changed through this reference".

Some more information:

   http://www.digitalmars.com/d/2.0/const3.html

Ali


More information about the Digitalmars-d-learn mailing list