On Sunday, 13 March 2016 at 20:10:57 UTC, Basile B. wrote:
ref const(Array!Type) view(){}

Unless the result is explicitly cast later it can't me modified.

No, it can't be modified, period. Casting away const and then mutating is not allowed, it has undefined behavior.

Reply via email to