const vs immutable

Sean Eskapp eatingstaples at gmail.com
Tue Jan 18 14:52:15 PST 2011


In cases where they are the same, for instance declaring:
const int x = oldX + 5;

vs

immutable int x = oldX + 5;

Or in non-class, non-array function parameters, does it make a difference
which is used?


More information about the Digitalmars-d-learn mailing list