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