private ubyte[10] arr;
public const(ubyte)* arrPtr() {
return arr.ptr;
}
void main() {
*arrPtr = 42;//错误,不能修改常指针.
}
d的访问器函数
原创
©著作权归作者所有:来自51CTO博客作者fqbqrr的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:ahk点击指定坐标
下一篇:ctrl+alt两键翻译网页
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
对象的访问器属性
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head>
javascript html 下划线 函数返回 -
C语言函数大全--d开头的函数
本篇介绍 C语言中的 d 开头的函数
C语言函数大全 d开头的函数 -
d绑定函数
d绑定函数
d 绑定 函数 -
d从共享环境访问tls
d从共享环境访问tls
d 共享 tls