Xinok:

For me, one of the annoyances of working with immutable data is simply initializing data. Immutable variables have to be initialized upon declaration and cannot be modified after that point. This is made more difficult if you have several immutable variables to initialize in conjunction with one another

Currently, the following syntax is not allowed within functions:
immutable{ }

See also:

http://www.digitalmars.com/d/archives/digitalmars/D/Transients_or_scoped_immutability_135204.html

Bye,
bearophile

Reply via email to