Head Const

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 17 23:51:14 PST 2016


On 2/17/2016 4:41 PM, Jonathan M Davis wrote:
> Yes, but that really isn't going to help much code. It would be useless for
> ref-counting const objects, it wouldn't allow you to put a mutex in a const
> object, and you couldn't do anything with caching calculated properties in a
> const object.

Embed a headconst pointer to the thing you want to mutate.



More information about the Digitalmars-d mailing list