The constness problem
H. S. Teoh via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jul 12 10:13:29 PDT 2014
On Sat, Jul 12, 2014 at 03:03:12PM +0000, Peter Alexander via Digitalmars-d wrote:
> http://pointersgonewild.wordpress.com/2014/07/11/the-constness-problem/
>
> I can relate to this. I don't use classes much in D, but I find it
> frustrating that you need to reach to std.typecons.Rebindable for what
> I would consider to be a more common usage of const with classes.
>
> I really feel that a mutable reference to a const object should be
> expressible in the core language.
+1. This also adversely affects generic code. As soon as you have a
const in there, things break. We badly, badly, need tail-const.
T
--
Let X be the set not defined by this sentence...
More information about the Digitalmars-d
mailing list