Closed GoogleCodeExporter closed 9 years ago
The "const" keyword has a different meaning in Crack than in C++. In Crack, it
simply means "the variable can not be assigned." It was introduced for
primitive values to prevent the risk of numeric constants in modules being
modified and to allow us the optimization of using those constants by value, as
opposed to by loading a global variable.
The language will never have anything like const variables and methods like in
C++ because this feature is widely considered problematic. I would be open to
discussion on better ways to facilitate immutable objects, but any such
discussion should be hashed out on the mailing list.
Original comment by mind...@gmail.com
on 19 Dec 2011 at 2:40
Original issue reported on code.google.com by
boua...@gmail.com
on 17 Dec 2011 at 3:58