Reuse of variables referencing const objects

Sergey Kovrov kovrov+digitalmars at gmail.com
Fri Mar 6 06:39:43 PST 2009


Other reference types (e.g. arrays) have solution to this: ``immutable(TYPE)[]`` and ``immutable(TYPE[])`.

I think class instances should have something similar in language as well.


-- serg.


More information about the Digitalmars-d-learn mailing list