它们的含义由它们在参数列表里的位置隐式确定,所以其排序中的任何错误都会悄悄改变其含义。
Their meaning is determined implicitly by their position in the argument list, and so any mistake in their ordering silently changes their meaning.
foreach行上缺少的列表并不是输入错误:如果您省略某个列表,则foreach结构将处理命令行上给出的参数列表。
The missing list on the foreach line isn't a typo: If you omit a list, the foreach structure processes the list of arguments given on the command line.
需注意的是,假如两个函数的名称与参数列表均一致然而返回类型不同的话,这就是个编译错误。
You should note that two functions with the same name and parameter list, but different return types, generate a compiler error.
应用推荐