The Status of Const

Justin Johansson no at spam.com
Thu Aug 12 17:40:40 PDT 2010


Graham St Jack wrote:
> Is there any plan to introduce some way of having a mutable reference to 
> an immutable class object on the heap? Do others see this as a problem 
> at all?

For embedded microsystems (i.e. with ROM/RAM) this is a problem.  It
is a common use case to have a mutable reference (in RAM) to some
objects that reside in ROM.  Obviously anything in ROM is guaranteed
by hardware to be immutable.  So, yes, this is a problem in a
wider sense.


More information about the Digitalmars-d mailing list