private ubyte[10] arr; public const(ubyte)* arrPtr() { return arr.ptr; } void main() { *arrPtr = 42;//错误,不能修改常指针. }