On 18.02.2016 08:51, Walter Bright wrote:
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.
const(headconst(T)) is the same as const(T), no?
