随笔分类 -  dip

摘要:原文 ref int f(ref return scope int* p) @safe { return *p; } 按引用+中域编译,保护p值,而非p地址,成功编译,因为p就是返回值. 而: ref int f(ref scope return int* p) @safe { return *p; 阅读全文
posted @ 2022-10-09 15:10 zjh6 阅读(12) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示