argument type conversion 参数类型转换
Versa provides data conversion functions, one of which is the string function, which converts its argument to a string.
Versa 提供数据转换函数,其中之一是 string 函数,它将其参数转换成字符串。
As with any call, an argument might match its parameter either because the types match exactly or because there is a conversion from the argument type to the type of the parameter.
与任意函数调用一样,实参必须与它的形参匹配,它们的类型要么精确匹配,要么实参类型能够转换为形参类型。
A constructor that can be called with a single argument defines an implicit conversion from the parameter type to the class type.
可以用单个实参来调用的构造函数定义了从形参类型到该类类型的一个隐式转换。
应用推荐