Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以通过名称、参考和价值来深入解释调用,并将它们相互比较吗?
简单的例子也很棒。我非常专注于按名称调用,感觉与按引用调用非常相似。
按名称调用:在按名称调用中,实际参数不在函数调用处进行评估,而是替换文本中相应形式参数的所有实例。实际参数根据需要多次评估。实际参数在“调用者”环境中进行评估(如果需要):