D doesn't have head-const. So you must hide the mutable implementation to get this to work.You'd want to do this anyway, since you don't want to directly use the pointer for anything like indexing (it should first validate the index is valid, at least in an assert).-Steve
Seems like I'll have to have a look at operator overloading, thanks for the clarification!