On Tuesday, 21 October 2014 at 01:50:55 UTC, H. S. Teoh via Digitalmars-d wrote:
        /* Note: this is hypothetical syntax */
        tail_const(Wrapper!T) x;

gets translated to:

        Wrapper!(const(T)) x;

Please note that an important reason for using const is multi-threading where you may want to accept multiple readers and one writer. So IMO non-const parts of an object should stay on a different cache lines from the const parts…

Reply via email to