你让他把传f(int)的全改成f(const int)再来跟你说话
这种脑子有坑的根本别客气
【 在 freyoneby 的大作中提到: 】
: 标 题: 有个老外code review不让过
: 发信站: 水木社区 (Thu Apr 6 22:18:28 2023), 站内
:
: 一定要函数参数加个const,比如conf(const char* path)改成conf(const char* const path),我说参数的值改不了,没必要加,他说能加const地方都要加,想问一下参数要么进栈要么进寄存器,const是怎么作用到寄存器上的?
:
: - 来自 水木社区APP v3.5.7
: --
:
:
: ※ 来源:·
https://exp.mysmth.net·[FROM: 139.226.62.*]
:
--
FROM 116.234.206.*