Idea: Immutable blocks within functions
bearophile
bearophileHUGS at lycos.com
Wed Sep 11 15:02:14 PDT 2013
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
More information about the Digitalmars-d
mailing list