D constness: head & tail

Tobias Pankrath via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Mar 2 03:33:00 PST 2015


On Monday, 2 March 2015 at 10:15:00 UTC, ketmar wrote:
> or, tl;dr: `const` in D is working as it was designed to work. 
> there are
> no changes planning for it, and it will not be turned to 
> "c++-like" const.

It's working as it's designed to work, although the design is 
somewhat lacking:

https://github.com/D-Programming-Language/phobos/blob/master/std/container/array.d#L505


More information about the Digitalmars-d-learn mailing list