标量变量简单而又不可缺少。
每次写绑定标量变量时,都会调用它的STORE方法。
Every time you write to a tied scalar variable, you invoke its STORE method.
我们还知道op是标量变量,因为它的前缀是 $。
We also know that op is a scalar variable because it is prefixed with the $.
第2行将第一个词从对脚本的参数中移去,并将其放入标量变量op中。
Line 2 shifts the first word off of the arguments to the script and places it in the scalar variable op.
绑定标量变量以及在此问题上的任何绑定变量都需要将其实际数据存储在某个地方。
Note that a tied scalar variable, and any tied variable for that matter, needs to store its actual data somewhere.
可以使用初始化器列表对标量变量进行初始化,在这种情况下应用一般的类型窄化规则。
It's okay to use initializer lists to initialize scalar variables, and the usual rule of type narrowing applies in such cases.
可以使用初始化器列表对标量变量进行初始化,在这种情况下应用一般的类型窄化规则。
It's okay to use initializer lists to initialize scalar variables, and the usual rule of type narrowing applies in such cases.
应用推荐