Reuse of variables referencing const objects
Steven Schveighoffer
schveiguy at yahoo.com
Fri Mar 6 13:29:23 PST 2009
On Fri, 06 Mar 2009 09:39:43 -0500, Sergey Kovrov wrote:
> 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.
std.typecons.Rebindable
http://www.digitalmars.com/d/2.0/phobos/std_typecons.html#Rebindable
-Steve
More information about the Digitalmars-d-learn
mailing list